[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: bad calloc in the loader
- From: "Kiyoaki Matsugae" <matsugae kiyoaki gmail com>
- To: anaconda-devel-list redhat com
- Subject: PATCH: bad calloc in the loader
- Date: Sun, 28 Jan 2007 21:33:34 +0100
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]