ropensci / redland-bindings

Redland librdf language bindings
http://librdf.org/bindings/
Other
17 stars 3 forks source link

Check redland using rchk #78

Closed gothub closed 5 years ago

gothub commented 5 years ago

The rchk program checks C source code for potential memory protection errors. @cboettig and others has reported that this tool reports potential problems with the SWIG generated source.

Use this tool to find and fix memory problems.

gothub commented 5 years ago

CRAN package checks flagged the 1.10.17-10 release as getting a warning from rchk as shown here: https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/results/redland.out

Package redland version 1.0.17-10
Package built using 76738/R 3.7.0; x86_64-pc-linux-gnu; 2019-06-27 01:24:38 UTC; unix   
Checked with rchk version 6400f4a0aa14a4379fcc72d8dbf07a49b4725e07
More information at https://github.com/kalibera/cran-checks/blob/master/rchk/PROTECT.md

Function SWIG_R_NewPointerObj
  [UP] calling allocating function R_MakeExternalPtr with argument allocated using R_MakeExternalPtr redland/src/redland.c:977

This rchk violation was fixed in commit 27f58422f81c3a83dcef86a1a84598c6bad1fcbf.

The package was checked on Ubuntu 17.10 using the directions posted here: https://github.com/kalibera/rchk and the checked passed