aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2024-09-10 11:02:28 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2024-09-10 11:02:28 +0200
commit390b3cbbb2af3c749587b0697c01c94e0e173510 (patch)
tree1d6432a714488645f471cc62abd042a40f266ecd /src/backend/utils/adt/xml.c
parent56fead44dcc70df9f9188fee08e5aefe3da43ccc (diff)
downloadpostgresql-390b3cbbb2af3c749587b0697c01c94e0e173510.tar.gz
postgresql-390b3cbbb2af3c749587b0697c01c94e0e173510.zip
Protect against small overread in SASLprep validation
In case of torn UTF8 in the input data we might end up going past the end of the string since we don't account for length. While validation won't be performed on a sequence with a NULL byte it's better to avoid going past the end to beging with. Fix by taking the length into consideration. Author: Jacob Champion <jacob.champion@enterprisedb.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAOYmi+mTnmM172g=_+Yvc47hzzeAsYPy2C4UBY3HK9p-AXNV0g@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions