Changeset 77ed9b7 for lib


Ignore:
Timestamp:
2015-06-17T22:50:15Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
24de9fa, 632a232
Parents:
2f99f23
Message:

Fix NULL pointer dereference in lib/json.c. (#1220)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/json.c

    r2f99f23 r77ed9b7  
    509509                                case ']':
    510510
    511                                         if (top->type == json_array) {
     511                                        if (top && top->type == json_array) {
    512512                                                flags = (flags & ~(flag_need_comma | flag_seek_value)) | flag_next;
    513513                                        } else {              sprintf(error, "%d:%d: Unexpected ]", cur_line, e_off);
Note: See TracChangeset for help on using the changeset viewer.