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

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

Build:
DEFAULT BRANCH: master
Ran 16 Apr 2015 07:14PM UTC
Files 23
Run time 4s
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.958% (-0.04%) from 100.0%
CONF=debug ARCH=x86_64

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

2357 of 2358 relevant lines covered (99.96%)

1330563.3 hits per line

Source Files on job 757.5 (CONF=debug ARCH=x86_64)
  • 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.5
  • 34949300 on github
  • Prev Job for CONF=debug ARCH=x86_64 on master (#756.5)
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