mirror of
https://github.com/wader/fq.git
synced 2024-11-23 18:56:52 +03:00
flac,fuzz: Fatal error on negative partition sample count
This commit is contained in:
parent
16ab994b28
commit
fb2a2b949c
@ -452,6 +452,9 @@ func frameDecode(d *decode.D, in any) any {
|
|||||||
if samplesLen < n+count {
|
if samplesLen < n+count {
|
||||||
d.Fatalf("decodeResiduals outside block size")
|
d.Fatalf("decodeResiduals outside block size")
|
||||||
}
|
}
|
||||||
|
if count < 0 {
|
||||||
|
d.Fatalf("negative sample count %d", count)
|
||||||
|
}
|
||||||
|
|
||||||
if riceParameter == riceEscape {
|
if riceParameter == riceEscape {
|
||||||
escapeSampleSize := int(d.FieldU5("escape_sample_size"))
|
escapeSampleSize := int(d.FieldU5("escape_sample_size"))
|
||||||
|
Loading…
Reference in New Issue
Block a user