ALT Linux Bugzilla
– Attachment 1966 Details for
Bug 11773
crashes on some corrupted streams
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
abort decoding when bitalloc_huffman[i] == 7
libdts-alt-crash.patch (text/plain), 648 bytes, created by
Sergey Vlasov
on 2007-05-15 19:45:32 MSD
(
hide
)
Description:
abort decoding when bitalloc_huffman[i] == 7
Filename:
MIME Type:
Creator:
Sergey Vlasov
Created:
2007-05-15 19:45:32 MSD
Size:
648 bytes
patch
obsolete
>--- libdts-0.0.2/libdts/parse.c.alt-crash 2004-02-29 14:33:53 +0300 >+++ libdts-0.0.2/libdts/parse.c 2007-05-15 19:13:13 +0400 >@@ -354,7 +354,11 @@ int dts_frame (dts_state_t * state, uint > for (i = 0; i < state->prim_channels; i++) > { > state->bitalloc_huffman[i] = bitstream_get (state, 3); >- /* if (state->bitalloc_huffman[i] == 7) bailout */ >+ if (state->bitalloc_huffman[i] == 7) >+ { >+ fprintf (stderr, "invalid bitalloc_huffman[%d]\n", i); >+ return -1; >+ } > #ifdef DEBUG > fprintf (stderr, "bit allocation quantizer: %i\n", > state->bitalloc_huffman[i]);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 11773
: 1966