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

miloyip / rapidjson / 757
100%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2015 07:14PM UTC
Jobs 3
Files 23
Run time 866011min
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
757

Pull #305

travis-ci

pah
Avoid calling memcpy with NULL pointers

According to the C/C++ standards, calling `memcpy(NULL, NULL, 0)` is
undefined behaviour. Recent GCC versions may rely on this by optimizing
NULL pointer checks more aggressively, see [1].

This patch tries to avoid calling std::memcpy with zero elements.
As a side effect, explicitly return NULL when requesting an empty block
from MemoryPoolAllocator::Malloc.

This may be related to #301.

[1] https://gcc.gnu.org/gcc-4.9/porting_to.html
Pull Request #305: Avoid calling memcpy with NULL pointers

2065 of 2066 relevant lines covered (99.95%)

2458889.45 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
include/rapidjson/allocators.h
Jobs
ID Job ID Ran Files Coverage
3 757.3 (CONF=debug ARCH=x86) 07 Dec 2016 10:35PM UTC 0
42.65
Travis Job 757.3
5 757.5 (CONF=debug ARCH=x86_64) 16 Apr 2015 07:14PM UTC 0
99.96
Travis Job 757.5
7 757.7 (CONF=debug ARCH=x86) 16 Apr 2015 07:21PM UTC 0
99.96
Travis Job 757.7
Source Files on build 757
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #757
  • Pull Request #305
  • PR Base - master (#756)
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