Commit f05f59f
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!1 parent 8a7603e commit f05f59f
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