Re: [PATCH 2/2] util/resolve.c: Bail with error if moddep lst file line is too long

2022-02-08 Thread Daniel Kiper
On Wed, Jan 12, 2022 at 08:55:01PM -0600, Glenn Washburn wrote: > The code reads each line into a buffer of size 1024 and does not check if > the line is longer. So a line longer than 1024 will be read as a valid line > followed by an invalid line. Then an error confusing to the user is sent > with

[PATCH 2/2] util/resolve.c: Bail with error if moddep lst file line is too long

2022-01-12 Thread Glenn Washburn
The code reads each line into a buffer of size 1024 and does not check if the line is longer. So a line longer than 1024 will be read as a valid line followed by an invalid line. Then an error confusing to the user is sent with the test "invalid line format". But the line format is prefectly fine,