diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-24 22:44:20 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-03-24 22:44:20 (GMT) |
commit | 9533e6d6e8e69954593da006ab00ea362980bc76 (patch) | |
tree | fea6d02310b166f312ce2d6603890dfb8f53266f | |
parent | 3a365ab230cab40910366eee5352534719541598 (diff) | |
download | Doxygen-9533e6d6e8e69954593da006ab00ea362980bc76.zip Doxygen-9533e6d6e8e69954593da006ab00ea362980bc76.tar.gz Doxygen-9533e6d6e8e69954593da006ab00ea362980bc76.tar.bz2 |
Regression: fix potential lockup while parsing python code
-rw-r--r-- | src/pyscanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyscanner.l b/src/pyscanner.l index 6660915..ed471ed 100644 --- a/src/pyscanner.l +++ b/src/pyscanner.l @@ -1438,7 +1438,7 @@ static yy_size_t yyread(yyscan_t yyscanner,char *buf,yy_size_t max_size) { struct yyguts_t *yyg = (struct yyguts_t*)yyscanner; yy_size_t c=0; - const char *p = yyextra->inputString + yyextra->inputPosition; + const char *p = yyextra->inputString.data() + yyextra->inputPosition; while ( c < max_size && *p ) { *buf++ = *p++; c++; } yyextra->inputPosition+=c; return c; |