pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix some incorrect parsing of time with time zone strings 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/64579be64a3811d08ea7ccf92b1a443d76b96412 Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d8652ec55513260a1ae478f80ae3d7da6eb795e0 Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d16d241a55557352e09c9ffd6ab20548b066d193 Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1ba4d0fe463eaf16bc93024d0634cf224f07a0e8 Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7c64a2cd9446629493aadb9620e1ff77597ec27d Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1de3e0589a47681f081a79055f9e133eb94115ad Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix some incorrect parsing of time with time zone strings @ 2019-08-07 09:19 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 7+ messages in thread From: Michael Paquier @ 2019-08-07 09:19 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix some incorrect parsing of time with time zone strings When parsing a timetz string with a dynamic timezone abbreviation or a timezone not specified, it was possible to generate incorrect timestamps based on a date which uses some non-initialized variables if the input string did not specify fully a date to parse. This is already checked when a full timezone spec is included in the input string, but the two other cases mentioned above missed the same checks. This gets fixed by generating an error as this input is invalid, or in short when a date is not fully specified. Valgrind was complaining about this problem. Bug: #15910 Author: Alexander Lakhin Discussion: https://postgr.es/m/15910-2eba5106b9aa0c61@postgresql.org Backpatch-through: 9.4 Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1f7943698182cb368974596251dce334171ea354 Modified Files -------------- src/backend/utils/adt/datetime.c | 6 ++++++ src/test/regress/expected/timetz.out | 10 ++++++++++ src/test/regress/sql/timetz.sql | 5 +++++ 3 files changed, 21 insertions(+) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-08-07 09:19 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz> 2019-08-07 09:19 pgsql: Fix some incorrect parsing of time with time zone strings Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox