Fossil SCM

process_one_web_page crashes if zPathInfo is NULL

Fixed

cc8fb65705ef72a… · opened 15 years, 2 months ago

Type
Code_Defect
Priority
Severity
Severe
Resolution
Fixed
Subsystem
Created
Feb. 8, 2011 11:50 a.m.

If zPathInfo is NULL. Fossil crashes in process_one_web_page. This can be demonstrated by using a CGI script with directory: where no further path is specified.


$ gdb --args ./fossil.exe cgi /c/Apache2.2/cgi-bin/fossil
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) r
Starting program: c:\Users\MJanssen\Projects\fossil/./fossil.exe cgi c:/Apache2.
2/cgi-bin/fossil
[New thread 2100.0xce0]
Program received signal SIGSEGV, Segmentation fault.
process_one_web_page (zNotFound=<value optimized out>) at wbld/main_.c:897
897         while( zPathInfo[i] && zPathInfo[i]!='/' ){ i++; }
(gdb) q
The program is running.  Exit anyway? (y or n) y


dmitry added on 2011-09-11 12:04:29 UTC: Fixed in [0fc9b5e1f2].


Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button