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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 04 Jun 2024 11:31AM 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

04 Jun 2024 10:52AM UTC coverage: 72.903% (+0.003%) from 72.9%
9365797631

push

github

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

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,

1. Error like "pfree called with invalid pointer 0x149fb5b3c050 (header 0x0069032703270327)"
2. 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"
3. 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%)

2 existing lines in 1 file now uncovered.

41917 of 57497 relevant lines covered (72.9%)

109873.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
84.84
-0.13% contrib/babelfishpg_tsql/src/collation.c

Uncovered Existing Lines

Lines Coverage ∆ File
2
74.29
0.32% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 9365797631.1 04 Jun 2024 11:31AM UTC 114
72.9
GitHub Action Run
Source Files on build 9365797631
  • Tree
  • List 114
  • Changed 59
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9365797631
  • 551e0143 on github
  • Prev Build on BABEL_4_X_DEV (#9313151345)
  • Next Build on BABEL_4_X_DEV (#9374595157)
  • 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