Bug #5131
make crash at dvr_sub_scraper_friendly
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-06-20
Due date:
% Done:
0%
Estimated time:
Found in version:
4.3 master 1277
Affected Versions:
Description
Hello,
I have a problem
src / dvr / dvr_rec.c: In function »_dvr_sub_scraper_friendly.isra.10«:
src / dvr / dvr_rec.c: 484: 32: Error: "% 04d" directive writes between 4 and 11 bytes in a region of size 10 [-Werror = format overflow =]
sprintf (date_buf, "% 04d", tm.tm_year + 1900);
src / dvr / dvr_rec.c: 484: 31: Note: directive argument in range [-2147481748, 2147483647]
sprintf (date_buf, "% 04d", tm.tm_year + 1900);
src / dvr / dvr_rec.c: 484: 13: Note: sprintf prints between 5 and 12 bytes in the target of size 10
sprintf (date_buf, "% 04d", tm.tm_year + 1900);
make: *** [Makefile: 704: /opt/tvheadend-git/src/tvheadend-git/build.linux/src/dvr/dvr_rec.o] Error 1
greeting
Google translator
History
Updated by Jaroslav Kysela over 6 years ago
- Status changed from New to Fixed
Fixed in v4.3-1278-g5750826be.