Ticket Change Details
Not logged in
Overview

Artifact ID: 4bd4b8d6e6880f5d5290840422e0eb067d2a1349
Ticket: cc8fb65705ef72a0d06dc07a3a0ac5c7f63b617c
process_one_web_page crashes if zPathInfo is NULL
User & Date: mjanssen 2011-02-08 11:50:54
Changes

  1. comment changed to:
    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.
    <verbatim>
    $ 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
    </verbatim>
    
  2. foundin changed to: "a4b0b7d9e9"
  3. private_contact changed to: "9e3254e6e3c2643cc148bab2d55f46bb4c0446f4"
  4. severity changed to: "Severe"
  5. status changed to: "Open"
  6. title changed to: "process_one_web_page crashes if zPathInfo is NULL"
  7. type changed to: "Code_Defect"