[ruby-cvs:51961] nobu:r44816 (trunk): yaml/api.c, yaml/loader.c: integer overflow

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Feb 5 10:17:28 JST 2014


nobu	2014-02-05 10:17:28 +0900 (Wed, 05 Feb 2014)

  New Revision: 44816

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44816

  Log:
    yaml/api.c, yaml/loader.c: integer overflow
    
    * ext/psych/yaml/api.c (yaml_scalar_event_initialize): fix possible
      integer overflow.
      (yaml_document_add_scalar): ditto.
      (yaml_document_add_sequence): ditto.
       (yaml_document_add_mapping): ditto.
    
    * ext/psych/yaml/loader.c (yaml_parser_load_scalar): ditto.
      (yaml_parser_load_sequence): ditto.
      (yaml_parser_load_mapping): ditto.
    
    * ext/psych/yaml/scanner.c (yaml_parser_roll_indent): suppress
      warnigs.

  Modified files:
    trunk/ext/psych/yaml/api.c
    trunk/ext/psych/yaml/loader.c
    trunk/ext/psych/yaml/scanner.c


More information about the ruby-cvs mailing list