Ticket #1764: libtunepimp-0.4.2-lookuptools.cpp-fix-buffer-overflow.diff
| File libtunepimp-0.4.2-lookuptools.cpp-fix-buffer-overflow.diff, 0.8 kB (added by kevin.kofler@chello.at, 2 years ago) |
|---|
-
lookuptools.cpp
old new 51 51 musicbrainz_t o; 52 52 char *args[7]; 53 53 int ret, trackNum; 54 char error[25 5], data[255], trackURI[256],54 char error[256], data[256], trackURI[256], 55 55 artistURI[256], albumURI[256]; 56 56 char temp[100], duration[100], status[100]; 57 57 … … 160 160 if (mb_Select1(o, MBS_SelectReleaseDate, j)) 161 161 { 162 162 // Pull back the release date and release country 163 if (mb_GetResultData(o, MBE_ReleaseGetDate, temp, 256))163 if (mb_GetResultData(o, MBE_ReleaseGetDate, temp, 100)) 164 164 { 165 165 int month = 0, day = 0, year = 0; 166 166