forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit41b0239
committed
jsonapi: fully initialize dummy lexer
Valgrind reports that checks on lex->inc_state are undefined for the"dummy lexer" used for incremental parsing, since it's only partiallyinitialized on the stack. This was introduced in0785d1b.Zero-initialize the whole struct.Author: Jacob Champion <jacob.champion@enterprisedb.com>Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://www.postgresql.org/message-id/CAOYmi+n9QWr4gsAADZc6qFQjFViXQYVk=gBy_EvxuqsgPJcb_g@mail.gmail.com1 parent342fb8a commit41b0239
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1536 | 1536 |
| |
1537 | 1537 |
| |
1538 | 1538 |
| |
1539 |
| - | |
| 1539 | + | |
1540 | 1540 |
| |
1541 | 1541 |
| |
1542 | 1542 |
| |
|
0 commit comments
Comments
(0)