The logic which checks if the line ends with ";" is currently broken: it may try to read past the buffer. Fix it by checking before trying to access line[pos]. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <bce51ba0260a053a0ec55a7375d6ed7a7c08026c.1772469446.git.mchehab+huawei@kernel.org> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| enrich_formatter.py | ||
| kdoc_files.py | ||
| kdoc_item.py | ||
| kdoc_output.py | ||
| kdoc_parser.py | ||
| kdoc_re.py | ||
| latex_fonts.py | ||
| parse_data_structs.py | ||
| python_version.py | ||