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

mgreter / libsass / 2075
79%
master: 85%

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

pending completion
2075

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.

10891 of 13796 relevant lines covered (78.94%)

665547.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2075.1 (AUTOTOOLS=no COVERAGE=yes BUILD=static) 24 Apr 2016 11:12PM UTC 0
79.22
Travis Job 2075.1
3 2075.3 (AUTOTOOLS=no COVERAGE=yes BUILD=static) 24 Apr 2016 11:17PM UTC 0
78.41
Travis Job 2075.3
Source Files on build 2075
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2075
  • 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