summaryrefslogtreecommitdiffstats
path: root/src/img4.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-01-07 16:09:38 +0100
committerGravatar Nikias Bassen2014-01-07 16:09:38 +0100
commit687f58d6d9289e70f0e9c561a39cd4a7ccb4c660 (patch)
tree55e0d2a5a310b2389e4d00fa735e25a9e0780704 /src/img4.c
parent34829cffdc3ee0902dbbef1d99147b11161bbe4f (diff)
downloadidevicerestore-687f58d6d9289e70f0e9c561a39cd4a7ccb4c660.tar.gz
idevicerestore-687f58d6d9289e70f0e9c561a39cd4a7ccb4c660.tar.bz2
img4: fix possible memory corruption
Diffstat (limited to 'src/img4.c')
-rw-r--r--src/img4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/img4.c b/src/img4.c
index 17a4664..18d8ab3 100644
--- a/src/img4.c
+++ b/src/img4.c
@@ -34,7 +34,7 @@
static unsigned char* asn1_create_element_header(unsigned char type, unsigned int size, unsigned char** data, unsigned int *data_size)
{
- unsigned char buf[5];
+ unsigned char buf[6];
unsigned int off = 0;
if (!type || size == 0 || !data || !data_size) {