forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c18d90
committed
Null-terminate the output buffer of LZ4Stream_gets
LZ4Stream_gets did not null-terminate its output buffer. The callers expectedthe buffer to be null-terminated and passed it around to functions such assscanf with unintended consequences.Author: Georgios Kokolatos <gkokolatos@pm.me>Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://postgr.es/m/94ae9bca-5ebb-1e68-bb7b-4f32e89fefbe@gmail.com1 parentd8c3106 commit3c18d90
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
462 | 466 |
| |
463 | 467 |
| |
464 | 468 |
| |
| |||
636 | 640 |
| |
637 | 641 |
| |
638 | 642 |
| |
639 |
| - | |
| 643 | + | |
640 | 644 |
| |
641 | 645 |
| |
642 | 646 |
| |
643 | 647 |
| |
644 | 648 |
| |
645 | 649 |
| |
646 | 650 |
| |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
647 | 657 |
| |
648 | 658 |
| |
649 | 659 |
| |
|
0 commit comments
Comments
(0)