aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/simple/armthumb.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-04-15 14:13:38 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-04-15 14:13:38 +0300
commite518d167aa5958e469982f4fb3a24b9b6a2b5d1c (patch)
tree125a0cdec5ad0e6c7c78408e30c7f1b3b2d7243a /src/liblzma/simple/armthumb.c
parentMinor fixes to test files' README. (diff)
downloadxz-e518d167aa5958e469982f4fb3a24b9b6a2b5d1c.tar.xz
Fix uint32_t -> size_t in ARM and ARM-Thumb filters.
On 64-bit system it would have gone into infinite loop if a single input buffer was over 4 GiB (unlikely).
Diffstat (limited to '')
-rw-r--r--src/liblzma/simple/armthumb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liblzma/simple/armthumb.c b/src/liblzma/simple/armthumb.c
index 77cfce11..e20151cc 100644
--- a/src/liblzma/simple/armthumb.c
+++ b/src/liblzma/simple/armthumb.c
@@ -19,7 +19,7 @@ armthumb_code(lzma_simple *simple lzma_attribute((unused)),
uint32_t now_pos, bool is_encoder,
uint8_t *buffer, size_t size)
{
- uint32_t i;
+ size_t i;
for (i = 0; i + 4 <= size; i += 2) {
if ((buffer[i + 1] & 0xF8) == 0xF0
&& (buffer[i + 3] & 0xF8) == 0xF8) {