Fix crash setting an invalid lexer ID
commitf1723b3bdd194c3a2dbec293c05a0835ff20d521
authorColomban Wendling <ban@herbesfolles.org>
Thu, 19 Oct 2023 12:24:55 +0000 (19 14:24 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Thu, 19 Oct 2023 12:24:55 +0000 (19 14:24 +0200)
tree0a4315906c5a8b3baa8770ae871cda8526413eb8
parent4246298dd8b3c70528cdad0554000f5d54f39765
Fix crash setting an invalid lexer ID

`LexerNameFromID()` will return `NULL` for unknown IDs, and
`CreateLexer()` does not gracefully handle it, so we need to check this
on our end.

Part of #3615.
src/sciwrappers.c