Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 105392 Details for
Bug 159990
media-video/mplayer-1.0_rc1 buffer overflow
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
asmrules_fix_20061231.diff
asmrules_fix_20061231.diff (text/plain), 1.42 KB, created by
juantxorena@gmail.com
on 2007-01-04 09:27:41 UTC
(
hide
)
Description:
asmrules_fix_20061231.diff
Filename:
MIME Type:
Creator:
juantxorena@gmail.com
Created:
2007-01-04 09:27:41 UTC
Size:
1.42 KB
patch
obsolete
>Index: stream/realrtsp/asmrp.c >=================================================================== >--- stream/realrtsp/asmrp.c (revision 20381) >+++ stream/realrtsp/asmrp.c (working copy) >@@ -40,6 +40,7 @@ > #include <stdlib.h> > #include <stdio.h> > #include <string.h> >+#include "asmrp.h" > > /* > #define LOG >@@ -645,8 +646,10 @@ > #ifdef LOG > printf ("rule #%d is true\n", rule_num); > #endif >- matches[num_matches] = rule_num; >- num_matches++; >+ if(num_matches < MAX_RULEMATCHES - 1) >+ matches[num_matches++] = rule_num; >+ else >+ printf("Ignoring matched asm rule %d, too many matched rules.\n", rule_num); > } > > rule_num++; >Index: stream/realrtsp/real.c >=================================================================== >--- stream/realrtsp/real.c (revision 20381) >+++ stream/realrtsp/real.c (working copy) >@@ -271,7 +271,7 @@ > int j=0; > int n; > char b[64]; >- int rulematches[16]; >+ int rulematches[MAX_RULEMATCHES]; > > #ifdef LOG > printf("calling asmrp_match with:\n%s\n%u\n", desc->stream[i]->asm_rule_book, bandwidth); >Index: stream/realrtsp/asmrp.h >=================================================================== >--- stream/realrtsp/asmrp.h (revision 20381) >+++ stream/realrtsp/asmrp.h (working copy) >@@ -40,6 +40,8 @@ > #ifndef HAVE_ASMRP_H > #define HAVE_ASMRP_H > >+#define MAX_RULEMATCHES 16 >+ > int asmrp_match (const char *rules, int bandwidth, int *matches) ; > > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 159990
: 105392 |
105393