Modify ↓
Ticket #87 (closed defect: fixed)
front page example has broken delete for yaml_event_delete
| Reported by: | anonymous R | Owned by: | xi |
|---|---|---|---|
| Priority: | normal | Component: | libyaml |
| Severity: | normal | Keywords: | |
| Cc: |
Description
In the PARSER API Synopsis example program there is a memory bug.
the while loop checks the type of the event.type but the event has already been deleted. the delete invalidates the event type under debian on my x86 system. to fix the bug, i had to introduce another integer variable to hold the type so that the loop can check that to know when to end.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
