[luatex] Segmentation fault in 1.09.2

luigi scarso luigi.scarso at gmail.com
Thu Jan 17 09:39:45 CET 2019


On Thu, Jan 17, 2019 at 9:22 AM Henri Menke <henrimenke at gmail.com> wrote:

>
> In C nothing is really const, but fair enough.  Maybe the attached patch
> is better.
>
>
>
source/README.6coding


What must be avoided with 'const'
.................................

The GCC compiler warnings "assignment discards qualifiers..." and
analogous warnings for "initialization", "passing arg", or "return" must
be strenously avoided in our own code.  The only exception is when they
are caused by X11 headers or macros or other third party code.

What should be avoided with 'const'
...................................

A type cast, e.g., from 'const char*' to 'char*' does not solve any
problems; depending on warning options, it may only hide them.
Therefore such casts should be avoided whenever possible and otherwise
must be carefully analyzed to make sure that they cannot cause the
modification of quantities supposed to be constant.


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20190117/ff892949/attachment.html>


More information about the luatex mailing list