FreeBSD Bugzilla – Attachment 148530 Details for
Bug 194506
[PATCH] "pciconf -a" asserts with unemerated device names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
pciconf.diff (text/plain), 408 bytes, created by
Anthony Cornehl
on 2014-10-21 06:38:39 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Anthony Cornehl
Created:
2014-10-21 06:38:39 UTC
Size:
408 bytes
patch
obsolete
>diff --git a/usr.sbin/pciconf/pciconf.c b/usr.sbin/pciconf/pciconf.c >index 12e83ec..e294010 100644 >--- a/usr.sbin/pciconf/pciconf.c >+++ b/usr.sbin/pciconf/pciconf.c >@@ -666,6 +666,8 @@ getdevice(const char *name) > cp = strchr(name, '\0'); > assert(cp != NULL && cp != name); > cp--; >+ if (isdigit(*cp) == 0) >+ errx(1, "Device not found"); > while (cp != name && isdigit(cp[-1])) > cp--; > if (cp == name)
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 Raw
Actions:
View
Attachments on
bug 194506
: 148530