Commit c42ffff
Fix memory allocation issues in pasteboard get_types()
The get_types() implementation has two flaws. First, the use of calloc()
is vulnerable to overflow if length is huge. Second, we attempt to zero
the allocation, but only zero the first element by mistake.
These issues were found by the Ubuntu Security Team. Thank you!
(cherry picked from commit f05f59f)1 parent c785ad5 commit c42ffff
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments