Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 450060 Details for
Bug 597006
app-shells/bash-4.4: large HISTFILESIZE value may result in upfront memory exhaustion
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to clamp the amount of memory initially allocated for history
bash-4.4-histfilesize-alloc.patch (text/plain), 842 bytes, created by
kfm
on 2016-10-13 01:39:04 UTC
(
hide
)
Description:
Patch to clamp the amount of memory initially allocated for history
Filename:
MIME Type:
Creator:
kfm
Created:
2016-10-13 01:39:04 UTC
Size:
842 bytes
patch
obsolete
>*** ../bash-4.4/lib/readline/history.c 2015-12-28 13:50:31.000000000 -0500 >--- lib/readline/history.c 2016-09-30 14:28:40.000000000 -0400 >*************** >*** 58,61 **** >--- 58,63 ---- > #define DEFAULT_HISTORY_INITIAL_SIZE 502 > >+ #define MAX_HISTORY_INITIAL_SIZE 8192 >+ > /* The number of slots to increase the_history by. */ > #define DEFAULT_HISTORY_GROW_SIZE 50 >*************** >*** 308,312 **** > { > if (history_stifled && history_max_entries > 0) >! history_size = history_max_entries + 2; > else > history_size = DEFAULT_HISTORY_INITIAL_SIZE; >--- 310,316 ---- > { > if (history_stifled && history_max_entries > 0) >! history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE) >! ? MAX_HISTORY_INITIAL_SIZE >! : history_max_entries + 2; > else > history_size = DEFAULT_HISTORY_INITIAL_SIZE;
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 597006
: 450060