Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (46 - 48 of 121)

Ticket Resolution Summary Owner Reporter
#89 invalid SIGSEGV if certain ints are not declared xi mzagrabe@…

Reported by mzagrabe@…, 5 years ago.

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
#95 invalid Libyaml svn revision 298 does not compile xi michael.the.drummer@…

Reported by michael.the.drummer@…, 5 years ago.

Description

Current trunk (revision 298) of libyaml does not compile no either my Ubuntu box or on OSX Tiger. There are 2 separate issues.

The first is a simple error in yaml_private.h. A Diff of this file is below.

Index: src/yaml_private.h
===================================================================
--- src/yaml_private.h	(revision 298)
+++ src/yaml_private.h	(working copy)
@@ -1231,7 +1231,7 @@
  * The information of a node being emitted.
  */
 
-struct typedef yaml_node_data_s {
+typedef struct yaml_node_data_s {
     /* The node id. */
     int id;
     /* The collection iterator. */

The second problem I am not sure about. Build log is attached.

Michael

#107 invalid remove unused variable in representer xi py4fun@…

Reported by py4fun@…, 5 years ago.

Description

remove unused list self.object_keeper in representer

Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py	(working copy)
@@ -26,14 +26,12 @@
         self.default_style = default_style
         self.default_flow_style = default_flow_style
         self.represented_objects = {}
-        self.object_keeper = []
         self.alias_key = None
 
     def represent(self, data):
         node = self.represent_data(data)
         self.serialize(node)
         self.represented_objects = {}
-        self.object_keeper = []
         self.alias_key = None
 
     def get_classobj_bases(self, cls):
@@ -54,7 +52,6 @@
                 #    raise RepresenterError("recursive objects are not allowed: %r" % data)
                 return node
             #self.represented_objects[alias_key] = None
-            self.object_keeper.append(data)
         data_types = type(data).__mro__
         if type(data) is types.InstanceType:
             data_types = self.get_classobj_bases(data.__class__)+list(data_types)

Note: See TracQuery for help on using queries.