rts/PEi386: Mysterious handling of bss section
While looking at !7384 (closed) I noticed an extremely suspicious bit of logic in ocVerifyImage_PEi386
:
/* Initialize the last section's info field which contains the .bss
section, it doesn't need an info so set it to NULL. */
sections[info->numberOfSections].info = NULL;
I have several questions:
- where is it written that the bss section must be last?
- why should it not have a valid
info
field? - didn't we just leak the
info
struct that the loop previously allocated for this section?