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

akrennmair / newsbeuter / 795 / 8
60%
master: 60%

Build:
DEFAULT BRANCH: master
Ran 12 Dec 2016 06:38PM UTC
Files 129
Run time 6s
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

12 Dec 2016 05:43PM UTC coverage: 31.951%. Remained the same
COMPILER=g++ GCOV=/usr/bin/gcov XML_CATALOG_FILES=/usr/local/etc/xml/catalog

push

travis-ci

Minoru
Fix #447

The bug was introduced in 26522a931,
where I re-wrote `strprintf` to use variadic templates. `strprintf` has
an internal buffer of 1024 characters; if formatted string doesn't fit
into it, new buffer is allocated and later destroyed.

As part of the re-write, I replaced `new` and `delete` with
`unique_ptr`, but I failed to update the rest of the function
accordingly. Specifically, when it came time to initialize `std::string`
out of `unique_ptr`'s contents, I used `operator*` which *only extracts
the first symbol*.

As a result, any line longer than internal buffer was reduced to its
first symbol.

`textformatter::format_text_to_list` uses `strprintf` to place input
string into a chunk of STFL markup that looks like this:

    {listitem text:\"Here goes the text\"}

Due to the aforementioned bug in `strprintf`, if the input text was long
enough, this format turned into a single character "{". STFL tripped
over it as described in #447.

3938 of 12325 relevant lines covered (31.95%)

113.9 hits per line

Source Files on job 795.8 (COMPILER=g++ GCOV=/usr/bin/gcov XML_CATALOG_FILES=/usr/local/etc/xml/catalog)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 795
  • Travis Job 795.8
  • e527095d on github
  • Prev Job for COMPILER=g++ GCOV=/usr/bin/gcov XML_CATALOG_FILES=/usr/local/etc/xml/catalog on master (#794.8)
  • Next Job for COMPILER=g++ GCOV=/usr/bin/gcov XML_CATALOG_FILES=/usr/local/etc/xml/catalog on master (#799.8)
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