diff options
author | Tim Terriberry <tterribe@xiph.org> | 2010-10-13 23:12:19 +0000 |
---|---|---|
committer | Tim Terriberry <tterribe@xiph.org> | 2010-10-13 23:12:19 +0000 |
commit | 88015f25dc5c29bf2819bfd8f7d2b46ec20dc204 (patch) | |
tree | 2d26702b018fd7cc556a718eaf9e24a976ae581b /sharedbook.c | |
parent | 69dfba92c6a0b872273ae79a832d89d6e83a7363 (diff) | |
download | tremor-88015f25dc5c29bf2819bfd8f7d2b46ec20dc204.tar.gz |
Fixes for r17514.
Actually allocate the right number of comments, and add an extra check against
i+1 overflowing (which could happen with a 4 GB comment packet on a 64-bit
machine... unlikely, but possible).
git-svn-id: https://svn.xiph.org/trunk/Tremor@17515 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'sharedbook.c')
-rw-r--r-- | sharedbook.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sharedbook.c b/sharedbook.c index 03c2147..fe49b10 100644 --- a/sharedbook.c +++ b/sharedbook.c @@ -129,6 +129,7 @@ ogg_uint32_t *_make_words(long *l,long n,long sparsecount){ but the above tree-gen code doesn't mark that. */ if(sparsecount != 1){ for(i=1;i<33;i++) + printf("%2li: 0x%08lX\n", i, marker[i] & (0xffffffffUL>>(32-i))); if(marker[i] & (0xffffffffUL>>(32-i))){ _ogg_free(r); return(NULL); |