This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abort on Malformed UTF-8 character errors
utf8n_to_uvchr_error() only warns on some Malformed UTF-8 characters, but scan_const needs to error here. Do it with yyerror() which accumulates all parser errors until it "has too many errors". Fixes 2 errors in #293, esp. id:000162,sig:06,src:026278+031045,op:splice,rep:32 and id:000001,sig:06,src:024259,op:arith8,pos:5,val:+27 which segfaulted in the error handler for "panic: constant overflowed allocated space"
- Loading branch information
Showing
3 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters