pythonmod: add check return value after ftell() (#1478)
Variable 'flen', which might receive a negative value at pythonmod.c:493 by calling function 'ftell', is used without checking at pythonmod.c:508 by calling function 'fread'. Found by the static analyzer Svace (ISP RAS). Signed-off-by: Petr Vaganov <petrvaganoff@gmail.com>
P
Petr Vaganov committed
1bab2dfafa7e7cc6b016b9854a4ff5f1d9af1b50
Parent: 22e2c5b
Committed by GitHub <noreply@github.com>
on 7/23/2026, 8:22:02 AM