pkg2zip
pkg2zip copied to clipboard
memset writing out of bounds
note that diccid is 10 bytes long
char discid[10];
but here you clear 16 (0x10)
memset(discid, 0x00, 0x10);