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

miloyip / rapidjson / 757 / 7
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2015 07:21PM UTC
Files 23
Run time 2s
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

16 Apr 2015 07:03PM UTC coverage: 99.957% (-0.04%) from 100.0%
CONF=debug ARCH=x86

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

2341 of 2342 relevant lines covered (99.96%)

1354727.78 hits per line

Source Files on job 757.7 (CONF=debug ARCH=x86)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 757
  • Travis Job 757.7
  • 34949300 on github
  • Prev Job for CONF=debug ARCH=x86 on master (#756.7)
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