diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-16 14:35:54 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-03-16 14:58:41 +0800 |
commit | 52198f7ac730e8c46fa5d464dc80ccf636e20507 (patch) | |
tree | 38ce0e1ef64baf8591a74d581ee3d3664d5bf445 /recipes/grip/grip-3.2.0/patch-src::discdb | |
parent | 5051155fd112ebce51ce262444400a666966c3f8 (diff) |
grip: Apply FreeBSD patch to fix a flaw with handling CDDB responses
Addresses CVE-2005-0706.
Diffstat (limited to 'recipes/grip/grip-3.2.0/patch-src::discdb')
-rw-r--r-- | recipes/grip/grip-3.2.0/patch-src::discdb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/grip/grip-3.2.0/patch-src::discdb b/recipes/grip/grip-3.2.0/patch-src::discdb new file mode 100644 index 0000000000..1d300b270f --- /dev/null +++ b/recipes/grip/grip-3.2.0/patch-src::discdb @@ -0,0 +1,20 @@ +--- src/discdb.c.orig Thu Apr 15 21:23:37 2004 ++++ src/discdb.c Wed Mar 16 19:02:09 2005 +@@ -311,7 +311,7 @@ + query->query_match=MATCH_EXACT; + query->query_matches=0; + +- while((inbuffer=DiscDBReadLine(&dataptr))) { ++ while(query->query_matches < MAX_INEXACT_MATCHES && (inbuffer=DiscDBReadLine(&dataptr))) { + query->query_list[query->query_matches].list_genre= + DiscDBGenreValue(g_strstrip(strtok(inbuffer," "))); + +@@ -331,7 +331,7 @@ + query->query_match=MATCH_INEXACT; + query->query_matches=0; + +- while((inbuffer=DiscDBReadLine(&dataptr))) { ++ while(query->query_matches < MAX_INEXACT_MATCHES && (inbuffer=DiscDBReadLine(&dataptr))) { + query->query_list[query->query_matches].list_genre= + DiscDBGenreValue(g_strstrip(strtok(inbuffer," "))); + |