diff options
author | Olly Betts <olly@survex.com> | 2023-04-20 14:14:43 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2023-04-20 14:14:43 +1200 |
commit | 8fb15fcc922a302b88937a68e089223fb90640f9 (patch) | |
tree | 2588ea70b669ac1a955f27d5d1a250107afa325c /Lib/d/doperators.swg | |
parent | 9873ff107af2f9dea05ddb9a48b9c2d7abbfd5dc (diff) | |
download | swig-8fb15fcc922a302b88937a68e089223fb90640f9.tar.gz |
Improve error for array size with a '<' character
Previously we'd fail an assertion and dump core, which isn't nice:
Bad template type passed to SwigType_remember: a(std::numeric_limits< unsigned char >::max()).unsigned char
swig: ../../Source/Swig/typesys.c:1709: SwigType_remember_clientdata: Assertion `0' failed.
Aborted (core dumped)
We also now know that this situation can be triggered by particular
user inputs, so an assertion is not an appropriate check anyway.
Now we report an error and exit with non-zero status:
:1: Error: Array size expressions containing a '<' character not fully supported
The `:1:` part isn't ideal but happens because the SwigType doesn't seem
to have file:line information.
See #2486.
Diffstat (limited to 'Lib/d/doperators.swg')
0 files changed, 0 insertions, 0 deletions