Ran
|
Jobs
9
|
Files
129
|
Run time
101min
|
Badge
Embed ▾
README BADGES
|
push
travis-ci
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.
4327 of 13343 relevant lines covered (32.43%)
831.49 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|