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 173461 Details for
Bug 255261
star -c -data-change-warn causes segfault at startup
[?]
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]
Fix
star-1.5-segv.patch (text/plain), 1.93 KB, created by
Daniel Kopeček
on 2007-08-27 09:49:57 UTC
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Daniel Kopeček
Created:
2007-08-27 09:49:57 UTC
Size:
1.93 KB
patch
obsolete
>--- star-1.5/star/checkerr.c.orig-segv 2006-10-31 18:06:25.000000000 +0100 >+++ star-1.5/star/checkerr.c 2007-08-27 11:42:39.000000000 +0200 >@@ -183,44 +183,45 @@ LOCAL struct eflags { > */ > LOCAL UInt32_t > errflags(eflag, doexit) >- char *eflag; >- BOOL doexit; >+ char *eflag; >+ BOOL doexit; > { >- register char *p = eflag; >- char *ef = _endword(eflag); >- char ec; >- register struct eflags *ep; >- register int slen; >- register UInt32_t nflags = 0; >- >- ec = *ef; >- *ef = '\0'; >- do { >- for (ep = eflags; ep->fname; ep++) { >- slen = strlen(ep->fname); >- if ((strncmp(ep->fname, p, slen) == 0) && >- (p[slen] == '|' || p[slen] == ' ' || >- p[slen] == '\0')) { >- nflags |= ep->fval; >- break; >- } >- } >- if (ep->fname == NULL) { >- if (doexit) >- comerrno(EX_BAD, "Bad flag '%s'\n", p); >- *ef = ec; /* Restore old character */ >- return (0); >- } >- p = strchr(p, '|'); >- } while (p && *p++ == '|'); >- >- *ef = ec; /* Restore old character */ >- if ((nflags & ~(UInt32_t)(E_ABORT|E_WARN)) == 0) { >- if (doexit) >- comerrno(EX_BAD, "Bad error condition '%s'.\n", eflag); >- return (0); >- } >- return (nflags); >+ register struct eflags *ep; >+ register int slen; >+ register UInt32_t nflags = 0; >+ char *curflags; >+ char *curflag; >+ >+ curflags = strdup (eflag); >+ *_endword(curflags) = '\0'; >+ curflag = strtok (curflags, "|"); >+ >+ while (curflag != NULL) { >+ for (ep = eflags; ep->fname; ep++) { >+ slen = strlen (ep->fname); >+ if ((strncmp (ep->fname, curflag, slen)) == 0) { >+ nflags |= ep->fval; >+ goto next; >+ } >+ } >+ >+ if (doexit) >+ comerrno (EX_BAD, "Bad flag '%s' \n", curflag); >+ >+ free (curflags); >+ return (0); >+ next: >+ curflag = strtok (NULL, "|"); >+ } >+ >+ free (curflags); >+ >+ if ((nflags & ~(UInt32_t)(E_ABORT|E_WARN)) == 0) { >+ if (doexit) >+ comerrno(EX_BAD, "Bad error condition '%s'.\n", eflag); >+ return (0); >+ } >+ return (nflags); > } > > LOCAL ec_t *
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 255261
:
173081
|
173101
| 173461 |
180281