diff options
author | Nikias Bassen | 2014-01-07 16:09:38 +0100 |
---|---|---|
committer | Nikias Bassen | 2014-01-07 16:09:38 +0100 |
commit | 687f58d6d9289e70f0e9c561a39cd4a7ccb4c660 (patch) | |
tree | 55e0d2a5a310b2389e4d00fa735e25a9e0780704 | |
parent | 34829cffdc3ee0902dbbef1d99147b11161bbe4f (diff) | |
download | idevicerestore-687f58d6d9289e70f0e9c561a39cd4a7ccb4c660.tar.gz idevicerestore-687f58d6d9289e70f0e9c561a39cd4a7ccb4c660.tar.bz2 |
img4: fix possible memory corruption
-rw-r--r-- | src/img4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |