Ran
|
Jobs
1
|
Files
114
|
Run time
1min
|
Badge
Embed ▾
README BADGES
|
push
github
String empty check in PLtsql_expr_query_mutator (#2432) Add a check that string is not empty before calling `.front()` on it (that is apparently [an UB on empty string](https://en.cppreference.com/w/cpp/string/basic_string/front)). There are many usages of `.front()` like this in `tsqlIface.cpp`, but AFAICS they always operate on known non-empty strings. Not sure if more non-empty checks before `.front()` calls are necessary there. Such crashes are deterministic with `-O0`, I've run JDBC test suite with `-O0` server and didn't get any more crashes. ### Issues Resolved https://github.com/babelfish-for-postgresql/babelfish_extensions/issues/2431 ### Test Scenarios Covered ### Without patch the problem is reproducible with [AVG-Aggregate-common-vu-verify](https://github.com/babelfish-for-postgresql/babelfish_extensions/blob/b38e6e2c0/test/JDBC/input/AVG-Aggregate-common-vu-verify.sql#L65) existing test (and probably some others). Signed-off-by: Alex Kasko <alex@staticlibs.net>
1 of 1 new or added line in 1 file covered. (100.0%)
41117 of 56677 relevant lines covered (72.55%)
63077.44 hits per line
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 8479429136.1 | 114 |
72.55 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|