Is it possible to define a structure size at run-time?
I'm trying to modify the pe.h file to include the actual PE sections. I defined a getter/setter function in pe_functions.js, so when section headers are analyzed the SizeOfRawData is saved in a var. I finally declared a new Section structure as:
public struct IMAGE_SECTION
{
var sizeOfSection = GetSizeOfSection();
BYTE Section[sizeOfSection];
};
But it seems the GetSizeOfSection() is called only once for the first section, all other sections will have that size!
Is there another way?
Thanks
