summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2014-12-24 21:07:10 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-12-24 21:07:23 +1100
commit6abec1b1c152bb3702c7251b5f0ec2b1f3207742 (patch)
tree30ec43975da8cd5b4df10665481f5634ceac78e5
parent725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6 (diff)
src/aiff.c : Fix potential undefined behaviour arising from shift.
Closes: https://github.com/erikd/libsndfile/issues/91
-rw-r--r--src/aiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aiff.c b/src/aiff.c
index 445fb32..36a088c 100644
--- a/src/aiff.c
+++ b/src/aiff.c
@@ -1616,7 +1616,7 @@ uint2tenbytefloat (unsigned int num, unsigned char *bytes)
return ;
} ;
- for (count = 0 ; count <= 32 ; count ++)
+ for (count = 0 ; count < 32 ; count ++)
{ if (num & mask)
break ;
mask >>= 1 ;