Piotr Sarna
6da4acb41e
expression: fix get_value for mismatched column definitions
...
As observed in #10026 , after schema changes it somehow happened
that a column defition that does not match any of the base table
columns was passed to expression verification code.
The function that looks up the index of a column happens to return
-1 when it doesn't find anything, so using this returned index
without checking if it's nonnegative results in accessing invalid
vector data, and a segfault or silent memory corruption.
Therefore, an explicit check is added to see if the column was actually
found. This serves two purposes:
- avoiding segfaults/memory corruption
- making it easier to investigate the root cause of #10026
Closes #10039
(cherry picked from commit 7b364fec9849e9a342af1c240e3a7185bf5401ef)
2022-03-21 10:46:34 +01:00
..
2022-03-21 10:46:34 +01:00
2021-09-24 11:05:53 +02:00
2021-10-27 17:02:00 +03:00
2021-10-27 17:02:00 +03:00
2022-03-02 22:00:15 +02:00
2021-08-26 14:53:58 +03:00
2021-08-26 15:01:04 +03:00
2021-06-06 19:18:49 +03:00
2021-09-21 16:20:30 +02:00
2021-08-26 15:32:52 +03:00
2021-08-22 16:49:40 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-09-28 23:49:11 +03:00
2021-08-26 15:34:13 +03:00
2021-07-27 20:00:48 +03:00
2021-09-15 12:55:54 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-10-27 17:02:00 +03:00
2021-06-06 19:18:49 +03:00
2021-09-30 07:23:43 +03:00
2021-06-07 15:58:35 +03:00
2021-09-28 23:49:11 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-10-27 17:02:00 +03:00
2021-09-15 12:55:54 +03:00
2021-09-21 16:28:15 +02:00
2021-08-26 15:37:52 +03:00
2021-07-30 17:57:10 +03:00
2021-08-22 21:11:40 +03:00
2021-08-22 16:49:40 +03:00
2021-06-06 19:18:49 +03:00
2021-09-30 07:23:43 +03:00
2021-07-30 01:22:39 +03:00
2021-09-07 11:13:30 +03:00
2021-09-07 11:13:30 +03:00
2021-06-06 19:18:49 +03:00
2021-08-26 15:56:44 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2022-02-16 10:08:24 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-10-27 17:02:00 +03:00
2021-09-28 23:49:21 +03:00
2021-06-06 19:18:49 +03:00
2021-09-24 11:05:53 +02:00
2021-08-26 15:56:44 +03:00
2021-08-26 15:56:44 +03:00
2021-09-24 11:05:53 +02:00
2021-09-24 11:05:53 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 13:30:32 +03:00
2021-09-28 23:49:21 +03:00
2021-09-24 11:05:53 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-24 11:01:08 +03:00
2021-06-06 19:18:49 +03:00
2021-09-21 16:05:09 +02:00
2021-09-24 11:05:53 +02:00