Hi all,

Unfortunately I'm not able to access the u-boot wiki at the moment, it seems 
like a server side problem.

anyway, I would like to file a patch on the mkenvimage utility, see attached 
patch file.


br


On 2016-08-11 18:50, Stefano Babic wrote:
Hi Mattias,

On 11/08/2016 17:23, Mattias Ekholm wrote:
Hi there


How do I file a bug report or patch on

git://git.denx.de/u-boot.git the file u-boot/tools/mkenvimage.c

There is at least one misstake in it :)
There is a mailing list for U-Boot. Please send your patch for review
with git send-email to u-boot@lists.denx.de.
You find more info here:

        http://www.denx.de/wiki/U-Boot/Patches

Best regards,
Stefano Babic


--
Mattias Ekholm
phone: +46-709-424412
Please visit the web-site http://www.thelifeyoucansave.com/ and join!

diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c
index 8eee72e..45d0606 100644
--- a/tools/mkenvimage.c
+++ b/tools/mkenvimage.c
@@ -162,7 +162,7 @@ int main(int argc, char **argv)
 		txt_fd = STDIN_FILENO;
 
 		do {
-			filebuf = realloc(filebuf, readlen);
+                        filebuf = realloc(filebuf, filesize + readlen);
 			if (!filebuf) {
 				fprintf(stderr, "Can't realloc memory for the input file buffer\n");
 				return EXIT_FAILURE;
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to