Ticket #103 (closed defect: released)

Opened 2 years ago

Last modified 2 years ago

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

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

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

x_bug.php (337 bytes) - added by malte 2 years ago.
reproduce code

Change History

Changed 2 years ago by malte

reproduce code

Changed 2 years ago by malte

  • status changed from new to closed
  • resolution set to invalid

Changed 2 years ago by olly

  • resolution changed from invalid to released

That was easy to fix!

Changed 2 years ago by trac

  • platform set to All
Note: See TracTickets for help on using tickets.