Commit c7667f4
authored
Fix Invalid read of size 2 in numeric_add (babelfish-for-postgresql#618)
This commit fixes the nvalid read of size 2 in numeric_add_opt_error by checking if result.ndigits > 0 before calling result.digits[0].
Task: BABEL-5945
Signed-off-by: yashneet vinayak yashneet@amazon.com1 parent 7faa775 commit c7667f4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2925 | 2925 | | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | | - | |
| 2928 | + | |
2929 | 2929 | | |
2930 | 2930 | | |
2931 | 2931 | | |
| |||
0 commit comments