Increase magic number buffer size from string length of magic number
to string length of magic number + 1.
This problem is reported by static analyzer due to no space
for null pointer at the end of string.
Change-Id: Idb9974648024847b171173ed7a1920c0a5fe5ffc
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
unsigned int delta_size;
unsigned int signature_size;
unsigned int certificate_size;
- unsigned char magic_number[MAGIC_NUMBER_SIZE];
+ unsigned char magic_number[MAGIC_NUMBER_SIZE + 1];
};
#endif /* __IMG_VERIFIER_H__ */