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

babelfish-for-postgresql / babelfish_extensions / 9379186891
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: fix-2998-4x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 05 Jun 2024 06:58AM 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

05 Jun 2024 06:19AM UTC coverage: 73.196% (+0.002%) from 73.194%
9379186891

push

github

web-flow
Fixed implementation of remove_accents_internal to better manage the memory (#2643)

In previous implementation of remove_accents_internal, we were passing input string to utrans_transUChars which will modify the string in place in order to remove the accents. And memory for the input string was also not well allocated in order to accommodate this expansion of string by utrans_transUChars causing the function to write out of allocated heap. This may cause various issues, for example,

Error like "pfree called with invalid pointer 0x149fb5b3c050 (header 0x0069032703270327)"
warnings like "problem in alloc set ExprContext: detected write past chunk end in block 0x35c6770, chunk 0x35c67e8" and "detected write past chunk end in ExprContext 0x2b24f48"
even result in server crash while allocating or freeing the memory
This commit fixes the implementation of remove_accents_internal to rightly calculate the capacity and allocate the enough memory to input string to handle possible expansion of the string by utrans_transUChars.

Task: BABEL-5006
Signed-off-by: Dipesh Dhameliya <dddhamel@amazon.com>

12 of 14 new or added lines in 1 file covered. (85.71%)

41723 of 57002 relevant lines covered (73.2%)

108030.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
84.84
-0.13% contrib/babelfishpg_tsql/src/collation.c
Jobs
ID Job ID Ran Files Coverage
1 9379186891.1 05 Jun 2024 06:58AM UTC 114
73.2
GitHub Action Run
Source Files on build 9379186891
  • Tree
  • List 114
  • Changed 61
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9379186891
  • 090e370b on github
  • Prev Build on BABEL_3_X_DEV (#9314670965)
  • Next Build on BABEL_3_X_DEV (#9415960694)
  • 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

© 2026 Coveralls, Inc