Ticket #144 (new defect)

Opened 5 months ago

Hpricot crash on Ruby 1.9 using the HEAD revision of trunk

Reported by: tarcieri Owned by: why
Priority: major Milestone:
Component: ext/hpricot_scan Version:
Keywords: Cc:

Description

Attempting to parse the attached file on Ruby 1.9 crashes Hpricot at the free() statement on line 258 of hpricot_scan.rl

Under valgrind, the first noticible errors were a series of invalid reads when the RSTRING_LEN macro is called on line 192 of hpricot_scan.rl. I'm guessing RSTRING_LEN is somehow getting passed a bogus value and returning a bogus length.

Attachments

crash.xml (118.5 kB) - added by tarcieri 5 months ago.

Change History

Changed 5 months ago by tarcieri

Note: See TracTickets for help on using tickets.