Export to GitHub

mod-geocache - issue #97

Request for non-existent WMS layers results in a segfault


Posted on Sep 30, 2011 by Happy Hippo

What steps will reproduce the problem? 1. Request a WMS cache tile with a secondary layer that does not exist. i.e. the LAYERS parameter is LAYERS=existing-layer,nonexistent-layer

One such URL might be:

http://localhost/geocache?LAYERS=existing-layer,nonexistent-layer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fjpeg&SRS=EPSG%3A4326&BBOX=-1.56505,50.69648,-1.54599,50.71428&WIDTH=1398&HEIGHT=738

What is the expected output? What do you see instead? The expected output would be a message saying the layer does not exist. Instead there is a segfault as a NULL tileset is operated on.

What version of the product are you using? On what operating system? mod-geocache 0.5, revision 434

$ uname -a Linux 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 07:32:23 UTC 2011 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GenuineIntel GNU/Linux

Attached is a patch which fixes the problem.

Attachments

Comment #1

Posted on Sep 30, 2011 by Helpful Rhino

This issue was closed by revision r435.

Status: Fixed

Labels:
Type-Defect Priority-Medium