Artifact [4bd4b8d6e6]
Not logged in

Artifact 4bd4b8d6e6880f5d5290840422e0eb067d2a1349:

Ticket change [4bd4b8d6e6] - New ticket [cc8fb65705] process_one_web_page crashes if zPathInfo is NULL. by mjanssen 2011-02-08 11:50:54.
D 2011-02-08T11:50:54.093
J comment If\szPathInfo\sis\sNULL.\sFossil\scrashes\sin\sprocess_one_web_page.\sThis\scan\sbe\sdemonstrated\sby\susing\sa\sCGI\sscript\swith\sdirectory:\swhere\sno\sfurther\spath\sis\sspecified.\r\n<verbatim>\r\n$\sgdb\s--args\s./fossil.exe\scgi\s/c/Apache2.2/cgi-bin/fossil\r\nGNU\sgdb\s6.8\r\nCopyright\s(C)\s2008\sFree\sSoftware\sFoundation,\sInc.\r\nLicense\sGPLv3+:\sGNU\sGPL\sversion\s3\sor\slater\s<http://gnu.org/licenses/gpl.html>\r\nThis\sis\sfree\ssoftware:\syou\sare\sfree\sto\schange\sand\sredistribute\sit.\r\nThere\sis\sNO\sWARRANTY,\sto\sthe\sextent\spermitted\sby\slaw.\s\sType\s"show\scopying"\r\nand\s"show\swarranty"\sfor\sdetails.\r\nThis\sGDB\swas\sconfigured\sas\s"i686-pc-mingw32"...\r\n(gdb)\sr\r\nStarting\sprogram:\sc:\\Users\\MJanssen\\Projects\\fossil/./fossil.exe\scgi\sc:/Apache2.\r\n2/cgi-bin/fossil\r\n[New\sthread\s2100.0xce0]\r\nProgram\sreceived\ssignal\sSIGSEGV,\sSegmentation\sfault.\r\nprocess_one_web_page\s(zNotFound=<value\soptimized\sout>)\sat\swbld/main_.c:897\r\n897\s\s\s\s\s\s\s\s\swhile(\szPathInfo[i]\s&&\szPathInfo[i]!='/'\s){\si++;\s}\r\n(gdb)\sq\r\nThe\sprogram\sis\srunning.\s\sExit\sanyway?\s(y\sor\sn)\sy\r\n</verbatim>
J foundin a4b0b7d9e9
J private_contact 9e3254e6e3c2643cc148bab2d55f46bb4c0446f4
J severity Severe
J status Open
J title process_one_web_page\scrashes\sif\szPathInfo\sis\sNULL
J type Code_Defect
K cc8fb65705ef72a0d06dc07a3a0ac5c7f63b617c
U mjanssen
Z 3e971d56a0d694b8fa06203d2d46eb1d