[ncl-talk] Buffer overflow in ymake-filter
Rick Brownrigg
brownrig at ucar.edu
Thu Sep 14 10:08:35 MDT 2017
Hi Michael,
Thanks very much for this patch, I will integrate it and it should be
available in the next release. I trust you've fixed up your version, and
are OK for now?
Thanks again,
Rick
On Wed, Sep 13, 2017 at 7:05 AM, Michael Kuhn <
michael.kuhn at informatik.uni-hamburg.de> wrote:
> Hi,
>
> since updating to GCC 7, I noticed some sporadic errors when compiling
> ncl. The problem comes from a buffer overflow in ymake-filter: The line
> buffer is currently hardcoded to be 2048 bytes large but some Makefiles
> contain lines longer than that. This caused the Makefiles to sometimes
> not be generated, consequently failing parts of the build.
>
> The attached patch replaces the static buffer with a dynamic one. It
> starts out at 2048 bytes and grows by 1024 bytes at a time if required.
>
>
> Best regards,
> Michael
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170914/01beb3cc/attachment.html>
More information about the ncl-talk
mailing list