Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#103 closed defect (released)

another php segfault when an xapian function is passed an improper argument.

Reported by: alec Owned by: Olly Betts
Priority: lowest Milestone:
Component: Xapian-bindings Version: 0.9.9
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

reproduction code:

<?

#document_pointer = new_document(); document_add_term($document_pointer, "hej", 1); var_dump($document_pointer);

$broken_pointer = array();

this will segfault, seemingly because we give a nonexistant array

element as the index pointer

$document_id = writabledatabase_add_document($broken_pointer[1],

$document_pointer); ?>

Attachments (1)

x_bug.php (337 bytes ) - added by alec 17 years ago.
reproduce code

Download all attachments as: .zip

Change History (3)

by alec, 17 years ago

Attachment: x_bug.php added

reproduce code

comment:1 by alec, 17 years ago

Resolution: invalid
Status: newclosed

comment:2 by Olly Betts, 17 years ago

Operating System: All
Resolution: invalidreleased

That was easy to fix!

Note: See TracTickets for help on using tickets.