SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
audio/sox/patches/patch-src_voc_c
Normal file
16
audio/sox/patches/patch-src_voc_c
Normal file
|
@ -0,0 +1,16 @@
|
|||
https://marc.info/?l=oss-security&m=167571683504082&w=2
|
||||
|
||||
Index: src/voc.c
|
||||
--- src/voc.c.orig
|
||||
+++ src/voc.c
|
||||
@@ -625,6 +625,10 @@ static int getblock(sox_format_t * ft)
|
||||
v->rate = new_rate_32;
|
||||
ft->signal.rate = new_rate_32;
|
||||
lsx_readb(ft, &uc);
|
||||
+ if (uc <= 1) {
|
||||
+ lsx_fail_errno(ft, SOX_EFMT, "2 bits per word required");
|
||||
+ return (SOX_EOF);
|
||||
+ }
|
||||
v->size = uc;
|
||||
lsx_readb(ft, &uc);
|
||||
if (v->channels != -1 && uc != v->channels) {
|
Loading…
Add table
Add a link
Reference in a new issue