• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 8479429136
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 29 Mar 2024 10:02AM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Mar 2024 09:24AM UTC coverage: 72.546%. Remained the same
8479429136

push

github

web-flow
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

Jobs
ID Job ID Ran Files Coverage
1 8479429136.1 29 Mar 2024 10:02AM UTC 114
72.55
GitHub Action Run
Source Files on build 8479429136
  • Tree
  • List 114
  • Changed 36
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8479429136
  • 6606b111 on github
  • Prev Build on BABEL_4_X_DEV (#8471529958)
  • Next Build on BABEL_4_X_DEV (#8526985148)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc