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 591288 Details for
Bug 831366
ncurses caches the TERMINFO variable incorrectly
[?]
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]
Patch curing the issue
ncurses-5.9-20120204-fix-caching.patch (text/plain), 1.06 KB, created by
Philippe Troin
on 2012-06-12 21:20:19 UTC
(
hide
)
Description:
Patch curing the issue
Filename:
MIME Type:
Creator:
Philippe Troin
Created:
2012-06-12 21:20:19 UTC
Size:
1.06 KB
patch
obsolete
>--- ncurses-5.9.orig/ncurses/tinfo/db_iterator.c 2012-06-12 13:14:13.000000000 -0700 >+++ ncurses-5.9/ncurses/tinfo/db_iterator.c 2012-06-12 13:12:57.000000000 -0700 >@@ -96,6 +96,11 @@ > bool result = FALSE; > char *value = getenv(name); > >+ if (NULL != value) { >+ value = strdup(value); >+ // Memory allocation failure unhandled >+ } >+ > if (which < dbdLAST) { > if (my_vars[which].name == 0 || strcmp(my_vars[which].name, name)) { > FreeIfNeeded(my_vars[which].value); >@@ -112,6 +117,7 @@ > result = TRUE; > } > } >+ if (!result) free(value); > return result; > } > >@@ -238,6 +244,7 @@ > NCURSES_EXPORT(void) > _nc_first_db(DBDIRS * state, int *offset) > { >+ bool cache_has_expired = FALSE; > *state = dbdTIC; > *offset = 0; > >@@ -246,7 +253,8 @@ > /* build a blob containing all of the strings we will use for a lookup > * table. > */ >- if (my_blob == 0) { >+ if (my_blob == 0 || (cache_has_expired = cache_expired())) { >+ if (cache_has_expired) free_cache(); > size_t blobsize = 0; > const char *values[dbdLAST]; > struct stat *my_stat;
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 831366
:
591287
| 591288