NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/57973 CVS commit: src/usr.bin/audio/common
The following reply was made to PR bin/57973; it has been noted by GNATS.
From: "matthew green" <mrg%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/57973 CVS commit: src/usr.bin/audio/common
Date: Fri, 8 Mar 2024 06:57:59 +0000
Module Name: src
Committed By: mrg
Date: Fri Mar 8 06:57:59 UTC 2024
Modified Files:
src/usr.bin/audio/common: libaudio.h wav.c
Log Message:
audio_wav_parse_hdr(): avoid buffer overreads and clean up
reimplement most of this function using a new method of buffer
management to ensure that we never read beyond the provided size.
properly handle RIFF chunk lengths, instead of assuming various
offsets from most files are right.
update list of consumed documentation and fill the list of WAVE
formats from RFC 2361 (most remain not supported.)
should fix PR#57973.
tested against a large number of .wav files i have handy and with
a testsuite generator that should be incoming soon.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.bin/audio/common/libaudio.h
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/audio/common/wav.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index