diff options
Diffstat (limited to 'app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch')
-rw-r--r-- | app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch new file mode 100644 index 000000000000..1739a146c485 --- /dev/null +++ b/app-misc/rioutil/files/rioutil-1.5.0-buffer-overflow.patch @@ -0,0 +1,15 @@ +flist->genre is defined as 'char genre[17]' so don't copy 22 into it + +Patch by Kevin McCarthy <signals42@gmail.com> + +--- librioutil/file_list.c ++++ librioutil/file_list.c +@@ -241,7 +241,7 @@ + strncpy(flist->title, info.data->title, 64); + strncpy(flist->album, info.data->album, 64); + strncpy(flist->name, info.data->name, 64); +- strncpy(flist->genre, (char *)info.data->genre2, 22); ++ strncpy(flist->genre, (char *)info.data->genre2, 17); + + strncpy(flist->year, (char *)info.data->year2, 4); + |