From: Wolfgang Denk Date: Thu, 01 Oct 2015 22:07:38 +0200 Subject: [U-Boot] [PATCH] net: Increase the size of the net_boot_file_name buffer In-Reply-To: <560D6DE3.8070901@ti.com> References: <1443622325-30792-1-git-send-email-j-stiffler@ti.com> <20151001142711.1CB7B3822C0@gemini.denx.de> <560D6DE3.8070901@ti.com> Message-ID: <20151001200738.73882382C34@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jacob, In message <560D6DE3.8070901@ti.com> you wrote: > > Yes. However, the global "net_boot_file_name" is not only used for > BOOTP, but also for NFS and TFTP. > > "net_boot_file_name" appears to be temporary storage to supply the file > path to arbitrary protocols from the command line arguments. I see. > The "file" field in the bootp message is fixed at 128 octets in the > "bootp_hdr" structure. > > The contents of "net_boot_file_name" are read or written using the > standard "strncopy()" or the similar "copy_filename()", so there should > be any issue with respect to memory leaks. I guess you mean there should NOT be any issue? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Anarchy may not be the best form of government, but it's better than no government at all.