mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 03:45:24 -05:00
48abd13021
* gnu/packages/patches/file-CVE-2014-3587.patch: New file. * gnu-system.am (dist_patch_DATA): Add it. * gnu/packages/file.scm (file): Update to 5.19. Add patch.
16 lines
517 B
Diff
16 lines
517 B
Diff
Fixes CVE-2014-3587. Copied from upstream commit
|
|
0641e56be1af003aa02c7c6b0184466540637233.
|
|
|
|
--- file-5.19/src/cdf.c.orig 2014-06-09 09:04:37.000000000 -0400
|
|
+++ file-5.19/src/cdf.c 2014-08-26 11:55:23.887118898 -0400
|
|
@@ -824,6 +824,10 @@
|
|
q = (const uint8_t *)(const void *)
|
|
((const char *)(const void *)p + ofs
|
|
- 2 * sizeof(uint32_t));
|
|
+ if (q < p) {
|
|
+ DPRINTF(("Wrapped around %p < %p\n", q, p));
|
|
+ goto out;
|
|
+ }
|
|
if (q > e) {
|
|
DPRINTF(("Ran of the end %p > %p\n", q, e));
|
|
goto out;
|