Fix CVE-2018-7253: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-7253 Copied from upstream: https://github.com/dbry/WavPack/commit/36a24c7881427d2e1e4dc1cef58f19eee0d13aec diff --git a/cli/dsdiff.c b/cli/dsdiff.c index 410dc1c..c016df9 100644 --- a/cli/dsdiff.c +++ b/cli/dsdiff.c @@ -153,7 +153,17 @@ int ParseDsdiffHeaderConfig (FILE *infile, char *infilename, char *fourcc, Wavpa error_line ("dsdiff file version = 0x%08x", version); } else if (!strncmp (dff_chunk_header.ckID, "PROP", 4)) { - char *prop_chunk = malloc ((size_t) dff_chunk_header.ckDataSize); + char *prop_chunk; + + if (dff_chunk_header.ckDataSize < 4 || dff_chunk_header.ckDataSize > 1024) { + error_line ("%s is not a valid .DFF file!", infilename); + return WAVPACK_SOFT_ERROR; + } + + if (debug_logging_mode) + error_line ("got PROP chunk of %d bytes total", (int) dff_chunk_header.ckDataSize); + + prop_chunk = malloc ((size_t) dff_chunk_header.ckDataSize); if (!DoReadFile (infile, prop_chunk, (uint32_t) dff_chunk_header.ckDataSize, &bcount) || bcount != dff_chunk_header.ckDataSize) { ackages/polkit.scm?id=b71c0645dfbf78bf3f3a5ee85f24d30ad0c65da6'>treecommitdiff
path: root/gnu/packages/polkit.scm
AgeCommit message (Expand)Author
2019-01-15gnu: Separate Python core packages from the rest....Ricardo Wurmus
2018-12-09gnu: polkit: Fix CVE-2018-19788....Leo Famulari
2018-08-09gnu: polkit: Update to 0.115 [fixes CVE-2018-1116]....Ricardo Wurmus
2018-02-27gnu: polkit: Fix 'invoke' call....Ludovic Courtès
2018-02-26gnu: Use HTTPS for supported freedesktop.org home pages....Tobias Geerinckx-Rice
2018-02-26gnu: polkit: Update phase & snippet style....Tobias Geerinckx-Rice