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

mgreter / libsass / 2075 / 3
79%
master: 85%

Build:
Build:
LAST BUILD BRANCH: move-ci-from-travis-to-github-actions
DEFAULT BRANCH: master
Ran 24 Apr 2016 11:17PM UTC
Files 104
Run time 5s
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

24 Apr 2016 11:08PM UTC coverage: 78.413%. First build
AUTOTOOLS=no COVERAGE=yes BUILD=static

push

travis-ci

mgreter
Fix issue when using intermediate string returns

In MSVC the following can lead to segfault:
sass_copy_c_string(stream.str().c_str());
Reason is that the string returned by str() is disposed before
sass_copy_c_string is invoked. The string is actually a stack
object, so indeed nobody is holding on to it. So it seems
perfectly fair to release it right away. So the const char*
by c_str will point to invalid memory. I'm not sure if this is
the behavior for all compiler, but I'm pretty sure we would
have gotten more issues reported if that would be the case.
Wrapping it in a functions seems the cleanest approach as the
function must hold on to the stack variable until it's done.

8896 of 11345 relevant lines covered (78.41%)

433685.41 hits per line

Source Files on job 2075.3 (AUTOTOOLS=no COVERAGE=yes BUILD=static)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2075
  • Travis Job 2075.3
  • 798aff18 on github
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