Proposed patch for [tvtime] cppcheck tool discovered same errors in the code:
intl/localcharset.c:
- fix common realloc mistake: buffer nulled but not freed upon failure.
intl/localealias.c:
- fix resource leak
plugins/kdetv_greedyh.c:
plugins/kdetv_tomsmocomp.c:
- fix buffer is accessed out of bounds.
src/commands.c:
- fix variable 'curname' is reassigned a value before the old one has
been used.
src/leetft.c:
- fix memory leak.
src/station.c
- fix dangerous usage of 'filename' (strncpy doesn't always
null-terminate it).
- fix dangerous usage of strncat - 3rd parameter is the maximum number
of characters to append.
src/tvtime.c
- fix memory leak.
- fix the buffer may not be null-terminated after the call to strncpy().
src/tvtimeconf.c
- fix resource leak.
- fix the buffer may not be null-terminated after the call to strncpy().
src/utils.c
- fix resource leak.
cppcheck.diff
Description: Binary data

