Bug report
This code can be improved:
|
while (tok_mode->last_expr_buffer[i] != '\0' && i < input_length) { |
It would be safer to first check the value of i
and then try to access [i]
index. This way it is harder to get read out of bounds.
Found by PVS-Studio in https://habr.com/ru/companies/pvs-studio/articles/902048/
Linked PRs