Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Staging:A
wavpack
CVE-2019-11498.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File CVE-2019-11498.patch of Package wavpack
From bc6cba3f552c44565f7f1e66dc1580189addb2b4 Mon Sep 17 00:00:00 2001 From: David Bryant <david@wavpack.com> Date: Tue, 5 Mar 2019 21:32:27 -0800 Subject: [PATCH] issue #67: make sure sample rate is specified and non-zero in DFF files --- cli/dsdiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: wavpack-5.1.0/cli/dsdiff.c =================================================================== --- wavpack-5.1.0.orig/cli/dsdiff.c +++ wavpack-5.1.0/cli/dsdiff.c @@ -181,7 +181,7 @@ int ParseDsdiffHeaderConfig (FILE *infil if (!strncmp (prop_chunk, "SND ", 4)) { char *cptr = prop_chunk + 4, *eptr = prop_chunk + dff_chunk_header.ckDataSize; uint16_t numChannels, chansSpecified, chanMask = 0; - uint32_t sampleRate; + uint32_t sampleRate = 0; while (eptr - cptr >= sizeof (dff_chunk_header)) { memcpy (&dff_chunk_header, cptr, sizeof (dff_chunk_header)); @@ -273,6 +273,12 @@ int ParseDsdiffHeaderConfig (FILE *infil free (prop_chunk); } else if (!strncmp (dff_chunk_header.ckID, "DSD ", 4)) { + + if (!config->num_channels || !config->sample_rate) { + error_line ("%s is not a valid .DFF file!", infilename); + return WAVPACK_SOFT_ERROR; + } + total_samples = dff_chunk_header.ckDataSize / config->num_channels; break; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor