Changeset 371


Ignore:
Timestamp:
10/11/10 02:41:03 (4 years ago)
Author:
xi
Message:

Fixed pointer arithmetic overflow when calculating the position of a potential simple key (#156, thank to ppelletier(at)oblong(dot)com).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/branches/stable/src/scanner.c

    r346 r371  
    11231123        simple_key.required = required; 
    11241124        simple_key.token_number =  
    1125             parser->tokens_parsed + parser->tokens.tail - parser->tokens.head; 
     1125            parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head); 
    11261126        simple_key.mark = parser->mark; 
    11271127 
Note: See TracChangeset for help on using the changeset viewer.