projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2635e
)
Fix a potential double-free in ecpg.
author
Michael Meskes
<
[email protected]
>
Fri, 10 Mar 2017 09:32:41 +0000
(10:32 +0100)
committer
Michael Meskes
<
[email protected]
>
Fri, 10 Mar 2017 09:32:41 +0000
(10:32 +0100)
src/interfaces/ecpg/preproc/pgc.l
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/pgc.l
b/src/interfaces/ecpg/preproc/pgc.l
index 6b58dd5afe71263337fe67bdef316400e437c069..7b2bfdccc9030ae507c9dd63c56209067514355b 100644
(file)
--- a/
src/interfaces/ecpg/preproc/pgc.l
+++ b/
src/interfaces/ecpg/preproc/pgc.l
@@
-565,6
+565,7
@@
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
{
addlit(yytext, yyleng);
free(dolqstart);
+ dolqstart = NULL;
BEGIN(SQL);
base_yylval.str = mm_strdup(literalbuf);
return DOLCONST;