Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4f57cee9
Commit
4f57cee9
authored
Aug 20, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo in libedit fixed - possible buffer overflow - bug#4696
parent
62722e7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cmd-line-utils/libedit/history.c
cmd-line-utils/libedit/history.c
+1
-1
No files found.
cmd-line-utils/libedit/history.c
View file @
4f57cee9
...
...
@@ -649,7 +649,7 @@ history_save(History *h, const char *fname)
retval
=
HPREV
(
h
,
&
ev
),
i
++
)
{
len
=
strlen
(
ev
.
str
)
*
4
;
if
(
len
>=
max_size
)
{
max_size
=
(
len
+
1023
)
&
1023
;
max_size
=
(
len
+
1023
)
&
~
1023
;
ptr
=
h_realloc
(
ptr
,
max_size
);
}
(
void
)
strvis
(
ptr
,
ev
.
str
,
VIS_WHITE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment