summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2004-06-17 00:58:19 +0000
committerMonty <xiphmont@xiph.org>2004-06-17 00:58:19 +0000
commitfad4066445c98d1844fdf131c36fd0702248e3bf (patch)
treef35bf28439c107c871f709a9a9038892624c30c6 /src
parent8e243b2c1f9779e8bfbdb4b131382e7a4438eb4b (diff)
downloadogg-fad4066445c98d1844fdf131c36fd0702248e3bf.tar.gz
Correct masking bug (incorrect implicit cast) in oggpackB_read that's
exposed by 64 bit systems; the 32 bit mask is signed default and being sign-extended by 64 bit. git-svn-id: http://svn.xiph.org/trunk/ogg@6832 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'src')
-rw-r--r--src/bitwise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitwise.c b/src/bitwise.c
index 719f20c..b1514cc 100644
--- a/src/bitwise.c
+++ b/src/bitwise.c
@@ -369,7 +369,7 @@ long oggpackB_read(oggpack_buffer *b,int bits){
}
}
}
- ret=((ret&0xffffffff)>>(m>>1))>>((m+1)>>1);
+ ret=((ret&0xffffffffUL)>>(m>>1))>>((m+1)>>1);
overflow: