File: zalloc_integer_overflow.patch

package info (click to toggle)
gcab 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 868 kB
  • sloc: ansic: 3,757; makefile: 62; sh: 23
file content (14 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Avoid integer overflow in zalloc
Author: Mario Limonciello <mario_limonciello@dell.com>

--- a/libgcab/cabinet.c
+++ b/libgcab/cabinet.c
@@ -26,7 +26,7 @@
 static voidpf
 zalloc (voidpf opaque, uInt items, uInt size)
 {
-    return g_malloc (items *size);
+    return g_malloc_n (items, size);
 }
 static void
 zfree (voidpf opaque, voidpf address)