diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-06-13 15:53:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 15:53:51 (GMT) |
commit | 9c51ea5d550dbcf5568b57913b1b453d1f92fd5c (patch) | |
tree | e2472bf02721494086fbca953bef4db67f93692c /Parser/tokenizer.h | |
parent | 04b91680373149077f8c466e6694b97966e1f2c6 (diff) | |
download | cpython-9c51ea5d550dbcf5568b57913b1b453d1f92fd5c.zip cpython-9c51ea5d550dbcf5568b57913b1b453d1f92fd5c.tar.gz cpython-9c51ea5d550dbcf5568b57913b1b453d1f92fd5c.tar.bz2 |
[3.12] gh-105718: Fix buffer allocation in tokenizer with readline (GH-105728) (#105729)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Parser/tokenizer.h')
-rw-r--r-- | Parser/tokenizer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/tokenizer.h b/Parser/tokenizer.h index 16e919a..cb44845 100644 --- a/Parser/tokenizer.h +++ b/Parser/tokenizer.h @@ -68,7 +68,7 @@ typedef struct _tokenizer_mode { struct tok_state { /* Input state; buf <= cur <= inp <= end */ /* NB an entire line is held in the buffer */ - char *buf; /* Input buffer, or NULL; malloc'ed if fp != NULL */ + char *buf; /* Input buffer, or NULL; malloc'ed if fp != NULL or readline != NULL */ char *cur; /* Next character in buffer */ char *inp; /* End of data in buffer */ int fp_interactive; /* If the file descriptor is interactive */ |