- Notifications
You must be signed in to change notification settings - Fork5
Commit3dd8e59
committed
Fix bogus handling of control characters in json_lex_string().
The original coding misbehaved if "char" is signed, and also made theextremely poor decision to print control characters literally when tryingto complain about them. Report and patch by Shigeru Hanada.In passing, also fix core dump risk in report_parse_error() should theparse state be something other than what it expects.1 parentd9b31e4 commit3dd8e59
2 files changed
+5
-6
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
419 | 419 |
| |
420 | 420 |
| |
421 | 421 |
| |
422 |
| - | |
| 422 | + | |
423 | 423 |
| |
424 | 424 |
| |
425 | 425 |
| |
| |||
430 | 430 |
| |
431 | 431 |
| |
432 | 432 |
| |
433 |
| - | |
434 |
| - | |
| 433 | + | |
| 434 | + | |
435 | 435 |
| |
436 | 436 |
| |
437 | 437 |
| |
| |||
637 | 637 |
| |
638 | 638 |
| |
639 | 639 |
| |
640 |
| - | |
| 640 | + | |
641 | 641 |
| |
642 | 642 |
| |
643 | 643 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
| 29 | + | |
31 | 30 |
| |
32 | 31 |
| |
33 | 32 |
| |
|
0 commit comments
Comments
(0)