/*
* sa_conv.c: Convert an old format sa file to the up-to-date format.
- * (C) 1999-2020 by Sebastien GODARD (sysstat <at> orange.fr)
+ * (C) 1999-2021 by Sebastien GODARD (sysstat <at> orange.fr)
*
***************************************************************************
* This program is free software; you can redistribute it and/or modify it *
a_cpu = TRUE;
}
- /* Size of an activity cannot be zero */
- if (!ofal->size)
+ /* Sanity checks */
+ if (!ofal->size || (ofal->size > MAX_ITEM_STRUCT_SIZE))
goto invalid_header;
/* Size of activity in file is larger than up-to-date activity size */