PATCH: bad calloc in the loader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Folks,

here is a attached a buf fix for anaconda

Description of problem:

calloc is incorrectly called in the loader.

/* while playing with it and kickstart, i had loader core dump in
fopen ( malloc to be more precise ) without any valid reason. */

there are serveral incorrect calloc calls :
for example :
loaderData->methodData = calloc(sizeof(struct hdInstallData *)
this should be
loaderData->methodData = calloc(sizeof(struct hdInstallData)

we want to alloc the struct size, not the size of the pointer to the struct !

Best regards,

Kiyo

Attachment: anaconda.patch
Description: Binary data


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux