david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[embed] Add missing register_image() to image/embedded.c

When the embedded image is a script, the unregister_image() performed by
image/script.c corrupts memory, since image/embedded.c omitted the call
to register_image().

This is the first bug fixed using Stefan Hajnoczi's gdb stub for gPXE.
This commit is contained in:
Michael Brown 2008-06-04 00:02:23 +01:00
parent 75965c9c6e
commit d615b00443
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ struct image *embedded_image(void)
return image = NULL;
}
copy_to_user(image->data, 0, _embedded_image_start, eisize);
register_image(image);
/* Reclaim embedded image memory */
reclaimed = 1;