]> git.puffer.fish Git - matthieu/frr.git/commit
lib/clippy: don't SEGV on invalid tokens in DEFPY
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 25 Mar 2023 03:33:14 +0000 (12:33 +0900)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 25 Mar 2023 03:33:14 +0000 (12:33 +0900)
commit9e92984f327221cda8578718040295485e33d5ba
treea69612b43c2e03dcd360d1b0a076af1e843cbf85
parent06f54ff416e63149f5b2bd770204472f1ea31ee5
lib/clippy: don't SEGV on invalid tokens in DEFPY

The token value can be NULL if we run into something that failed to
parse.  Throw a Python exception rather than SEGV.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/defun_lex.l