Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 184757 Details for
Bug 260985
media-sound/aumix-2.8-r4 - buffer overflow detected when incrementing volume
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
from debian bug #497865
30_noninter_strncpy.patch (text/plain), 1007 bytes, created by
Magnus Granberg
on 2009-03-11 23:05:14 UTC
(
hide
)
Description:
from debian bug #497865
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2009-03-11 23:05:14 UTC
Size:
1007 bytes
patch
obsolete
>--- aumix-2.8.orig/src/common.c 2008-09-04 16:50:41.000000000 -0700 >+++ aumix-2.8/src/common.c 2008-09-04 16:51:38.000000000 -0700 >@@ -655,17 +655,18 @@ > int SetShowNoninter(int dev) > { > /* Change or display settings from the command line. */ >- char *devstr, dest; >+ char *devstr; >+ char dest[4]; > int change = 0, tmp, left, right; > /* Increase or decrease levels, optionally by a number. */ > if (!strncmp(optarg, "+", 1) || !strncmp(optarg, "-", 1)) { > ErrorExitWarn(ReadLevel(dev, &tmp), 'e'); > right = tmp >> 8; /* I'll take the high byte, */ > left = tmp & 0xFF; /* and you take the low byte. */ >- strncpy(&dest, (optarg + 1), 3); >+ strncpy(dest, (optarg + 1), 3); > change = 1; /* For compatibility with versions 1.15 to 1.17, assume one if no number was given. */ >- if (atoi(&dest)) >- change = atoi(&dest); >+ if (atoi(dest)) >+ change = atoi(dest); > if (*optarg == '+') { /* increase */ > right += change; > left += change;
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 260985
:
183706
| 184757