Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 149837 Details for
Bug 231856
lsraid segfaults reading /proc/partitions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Increase maximum line length to 256
raidtools-1.00.3-maxline.patch (text/plain), 999 bytes, created by
Bryn M. Reeves
on 2007-03-12 16:39:57 UTC
(
hide
)
Description:
Increase maximum line length to 256
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-03-12 16:39:57 UTC
Size:
999 bytes
patch
obsolete
>Increase MAX_LINE_LENGTH to handle long entries in /proc/partitions [IT 115830] >(bhinson@redhat.com) >--- raidtools-1.00.3/common.h.orig 2007-03-09 18:21:41.000000000 -0500 >+++ raidtools-1.00.3/common.h 2007-03-09 18:21:52.000000000 -0500 >@@ -48,7 +48,7 @@ typedef int kdev_t; > #define DEBUG (0) > #define EXIT_USAGE (EXIT_FAILURE) > #define EXIT_VERSION (0) >-#define MAX_LINE_LENGTH (100) >+#define MAX_LINE_LENGTH (256) > #define ZERO_BUFFER_SIZE (64) /* 64kB */ > #define MD_BLK_SIZ (0x400) > #define RAID_CONFIG "/etc/raidtab" >--- raidtools-1.00.3/lsraid.c.orig 2007-03-09 18:21:24.000000000 -0500 >+++ raidtools-1.00.3/lsraid.c 2007-03-09 18:22:19.000000000 -0500 >@@ -1052,7 +1052,7 @@ static int load_partitions(LSRContext *c > major = minor = 0; > > /* FIXME: I'm lazy. Can this be overrun? */ >- if (sscanf(line, "%d %d %*d %99[^ \t\n]", >+ if (sscanf(line, "%d %d %*d %255[^ \t\n]", > &major, &minor, name) < 3) > continue; >
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 231856
: 149837