The function UDFFindFile() concatenates to tokenline using the given string
From: Erik Hovland <erik@hovland.org>
filename using strcat w/out checking the length of filename. Changing to
using strncat.
---
libs/libmythdvdnav/dvd_udf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/libmythdvdnav/dvd_udf.c b/libs/libmythdvdnav/dvd_udf.c
index 003aa8b..2585334 100644
a
|
b
|
uint32_t UDFFindFile( dvd_reader_t *device, char *filename, |
789 | 789 | |
790 | 790 | *filesize = 0; |
791 | 791 | tokenline[0] = '\0'; |
792 | | strcat( tokenline, filename ); |
| 792 | strncat( tokenline, filename, MAX_UDF_FILE_NAME_LEN - 1 ); |
793 | 793 | |
794 | 794 | |
795 | 795 | if(!(GetUDFCache(device, PartitionCache, 0, &partition) && |