I missed that you change < sizeof() to <= sizeof()... Sakari is right that it should be < sizeof(). <= doesn't work at all ever. If you wanted a higher limit then the next limit woule be: if (css->fw->size < struct_size(css->fwp, binary_header, 1)) regards, dan carpenter