pgsql: Avoid reading below the start of a stack variable in tokenize_fi - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Avoid reading below the start of a stack variable in tokenize_fi
Date
Msg-id E1Umuui-0007km-Qm@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Avoid reading below the start of a stack variable in tokenize_file().

We would wrongly overwrite the prior stack byte if it happened to
contain '\n' or '\r'.  New in 9.3, so no back-patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3a5d0c55338e6beb4c01ed5fadb1462e90db7545

Modified Files
--------------
src/backend/libpq/hba.c |    6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Don't use ordinary NULL-terminated strings as Name datums.
Next
From: Noah Misch
Date:
Subject: pgsql: Don't pass oidvector by value.