Repository navigation
Commit 4e46730
committed
Bug fix: GCM - fix potential buffer overflow
If the caller provides a too long tag length value to GCM
decrypt, GCM writes zeros beyond the buffer limits for the
newly calculated tags.
Reported-by: Conner Webber
Signed-off-by: Stephan Mueller <[email protected]>1 parent fa8778a commit 4e46730
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
901 | 903 | | |
902 | 904 | | |
903 | 905 | | |
| |||
0 commit comments