Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
7156a20b
Commit
7156a20b
authored
Aug 10, 2013
by
Alan Coopersmith
Committed by
Ulrich Sibiller
Oct 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lcDB.c: ensure buffer size is updated correctly if realloc fails
Signed-off-by:
Alan Coopersmith
<
alan.coopersmith@oracle.com
>
Backported-to-NX-by:
Ulrich Sibiller
<
uli42@gmx.de
>
parent
0574a55e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lcDB.c
nx-X11/lib/X11/lcDB.c
+3
-2
No files found.
nx-X11/lib/X11/lcDB.c
View file @
7156a20b
...
...
@@ -210,11 +210,12 @@ realloc_parse_info(
int
len
)
{
char
*
p
;
int
newsize
=
BUFSIZE
*
((
parse_info
.
bufsize
+
len
)
/
BUFSIZE
+
1
);
parse_info
.
bufMaxSize
=
BUFSIZE
*
((
parse_info
.
bufsize
+
len
)
/
BUFSIZE
+
1
);
p
=
(
char
*
)
Xrealloc
(
parse_info
.
buf
,
parse_info
.
bufMaxSize
);
p
=
Xrealloc
(
parse_info
.
buf
,
newsize
);
if
(
p
==
NULL
)
return
False
;
parse_info
.
bufMaxSize
=
newsize
;
parse_info
.
buf
=
p
;
return
True
;
...
...
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