Mageia Bugzilla – Attachment 11881 Details for
Bug 26549
re2c new infinite loop security issue (CVE-2018-21232)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Basic test of the lexer
01_basic.re (text/x-csrc), 904 bytes, created by
Len Lawrence
on 2020-09-13 17:09:55 CEST
(
hide
)
Description:
Basic test of the lexer
Filename:
MIME Type:
Creator:
Len Lawrence
Created:
2020-09-13 17:09:55 CEST
Size:
904 bytes
patch
obsolete
>// re2c $INPUT -o $OUTPUT -i >#include <assert.h> // > // C/C++ code >int lex(const char *YYCURSOR) // >{ > /*!re2c // start of re2c block > re2c:define:YYCTYPE = char; // configuration > re2c:yyfill:enable = 0; // configuration > re2c:flags:case-ranges = 1; // configuration > // > ident = [a-zA-Z_][a-zA-Z_0-9]*; // named definition > // > ident { return 0; } // normal rule > * { return 1; } // default rule > */ >} // > // >int main() // >{ // C/C++ code > assert(lex("_Zer0") == 0); // > return 0; // >} //
// re2c $INPUT -o $OUTPUT -i #include <assert.h> // // C/C++ code int lex(const char *YYCURSOR) // { /*!re2c // start of re2c block re2c:define:YYCTYPE = char; // configuration re2c:yyfill:enable = 0; // configuration re2c:flags:case-ranges = 1; // configuration // ident = [a-zA-Z_][a-zA-Z_0-9]*; // named definition // ident { return 0; } // normal rule * { return 1; } // default rule */ } // // int main() // { // C/C++ code assert(lex("_Zer0") == 0); // return 0; // } //
View Attachment As Raw
Actions:
View
Attachments on
bug 26549
:
11880
| 11881