FreeBSD Bugzilla – Attachment 11559 Details for
Bug 22727
disklabel crashes if the number of partitions equals MAXPARTITIONS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 548 bytes, created by
Tony Finch
on 2000-11-09 22:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Tony Finch
Created:
2000-11-09 22:10:01 UTC
Size:
548 bytes
patch
obsolete
>Index: disklabel.c >=================================================================== >RCS file: /home/ncvs/src/sbin/disklabel/disklabel.c,v >retrieving revision 1.28.2.5 >diff -u -r1.28.2.5 disklabel.c >--- disklabel.c 2000/10/31 01:32:23 1.28.2.5 >+++ disklabel.c 2000/11/09 22:00:23 >@@ -1141,7 +1141,7 @@ > if ('a' <= *cp && *cp <= 'z' && cp[1] == '\0') { > unsigned part = *cp - 'a'; > >- if (part > lp->d_npartitions) { >+ if (part >= lp->d_npartitions) { > fprintf(stderr, > "line %d: bad partition name\n", lineno); > errors++;
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 22727
: 11559