Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b5db97ac
Commit
b5db97ac
authored
Jun 26, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Correctly handle OOM in pop_buffer().
parent
1b79df4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
ppl.l
libs/wpp/ppl.l
+14
-13
No files found.
libs/wpp/ppl.l
View file @
b5db97ac
...
@@ -1354,19 +1354,20 @@ static bufferstackentry_t *pop_buffer(void)
...
@@ -1354,19 +1354,20 @@ static bufferstackentry_t *pop_buffer(void)
if(ppp)
if(ppp)
{
{
iep = pp_xmalloc(sizeof(includelogicentry_t));
iep = pp_xmalloc(sizeof(includelogicentry_t));
if(!iep)
if (iep)
return NULL;
{
iep->ppp = ppp;
iep->ppp = ppp;
ppp->iep = iep;
ppp->iep = iep;
iep->filename = bufferstack[bufferstackidx].include_filename;
iep->filename = bufferstack[bufferstackidx].include_filename;
iep->prev = NULL;
iep->prev = NULL;
iep->next = pp_includelogiclist;
iep->next = pp_includelogiclist;
if(iep->next)
if(iep->next)
iep->next->prev = iep;
iep->next->prev = iep;
pp_includelogiclist = iep;
pp_includelogiclist = iep;
if(pp_status.debug)
if(pp_status.debug)
fprintf(stderr, "pop_buffer: %s:%d: includelogic added, include_ppp='%s', file='%s'\n",
fprintf(stderr, "pop_buffer: %s:%d: includelogic added, include_ppp='%s', file='%s'\n", bufferstack[bufferstackidx].filename, bufferstack[bufferstackidx].line_number, pp_incl_state.ppp, iep->filename);
bufferstack[bufferstackidx].filename, bufferstack[bufferstackidx].line_number, pp_incl_state.ppp, iep->filename);
}
}
}
}
}
free(pp_incl_state.ppp);
free(pp_incl_state.ppp);
...
...
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