Custom Query (121 matches)
Results (49 - 51 of 121)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #89 | invalid | SIGSEGV if certain ints are not declared | xi | mzagrabe@… |
| Description |
The following program segfaults if any one of the integers: canonical unicode k done are not declared. ---------{ yaml_error.c begins }--------- #include <yaml.h> #include <stdio.h> #include <string.h> int main() { /* Comment out 'canonical' to demonstrate segfault int canonical; */ int unicode; int k; int done; yaml_parser_t parser; yaml_parser_initialize(&parser); yaml_parser_delete(&parser); return 0; } ---------{ yaml_error.c ends }--------- % gcc -Wall -ggdb -c yaml_error.c && gcc -Wall -ggdb -lyaml -o yaml_error yaml_error.o % gdb ./yaml_error (gdb) run Starting program: /home/mzagrabe/code/misc/c++/yaml/yaml_error Program received signal SIGSEGV, Segmentation fault. 0x08048514 in main () at yaml_error.c:19 19 } (gdb) Running Debian Sid: ii libyaml-0-1 0.1.1-1 ii libyaml-dev 0.1.1-1 ii gcc 4:4.3.1-2 |
|||
| #88 | invalid | Internal emitter error caused by yaml_emitter_set_output_string | xi | mzagrabe@… |
| Description |
Greetings, I am attempting to parse a yaml file in some C code and have most recently tried to use: yaml_emitter_set_output_string However after compiling and running the program I receive an internal emitter error. Files attached: yaml_error.c mzagrabe.yaml compiled with: gcc -c yaml_error.c && gcc -lyaml -o yaml_error yaml_error.o command line: % ./yaml_error mzagrabe.yaml libyaml version: Debian Sid ii libyaml-0-1 0.1.1-1 ii libyaml-dev 0.1.1-1 |
|||
| #87 | fixed | front page example has broken delete for yaml_event_delete | xi | anonymous R |
| 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. |
|||
