Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analyze the package with RcppDeepState #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FabrizioSandri
Copy link

@FabrizioSandri FabrizioSandri commented Sep 6, 2022

This PR adds a new Github Action which runs RcppDeepState+valgrind on your package. That means the C++ functions of your package will be tested with random inputs, and there will be a comment like this one for each new PR (which reports if valgrind found any issues with random inputs).

RcppDeepState analysis result

This package contains problems, according to RcppDeepState. The report was generated by RcppDeepState-action in this repository's fork and is accessible here.

@FabrizioSandri
Copy link
Author

RcppDeepState Report

function name message file line address trace R code
get_component_ Invalid read of size 8 parsing.cpp:181 No Address Trace found
Test code
testlist <- list(component = 1285348268L, urls = c("ixgizqkygqznkgyy", NA, NA, NA, "qfdxxfxtj", "tmiirlgoap", "qdrfolubcspeiskxucph", "tntjd", "nmmoncypyuinjaqrdm", NA, NA, "xdwnmvgeanabtozjnixr", "ssqz", "", "nxuaveoevoyjhoyubbmg", NA, "cuhhzkuhixobjexaszzf", "espvtbczmxkvxvyawxap", NA))
result <- do.call(urltools:::get_component_, testlist)
rm_component_ 17 bytes in 1 blocks are definitely lost in loss record 10 of 1,298 parsing.cpp:511 No Address Trace found
Test code
testlist <- list(component = 1285348268L, urls = c("ixgizqkygqznkgyy", NA, NA, NA, "qfdxxfxtj", "tmiirlgoap", "qdrfolubcspeiskxucph", "tntjd", "nmmoncypyuinjaqrdm", NA, NA, "xdwnmvgeanabtozjnixr", "ssqz", "", "nxuaveoevoyjhoyubbmg", NA, "cuhhzkuhixobjexaszzf", "espvtbczmxkvxvyawxap", NA))
result <- do.call(urltools:::rm_component_, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
get_component_ 3 3
get_credentials 3 0
host_extract_ 3 0
param_remove 3 0
puny_decode 3 0
puny_encode 3 0
reverse_strings 3 0
rm_component_ 3 3
set_component_ 3 0
set_component_f 3 0
set_component_r 3 0
strip_credentials 3 0
tld_extract_ 3 0
url_decode 3 0
url_encode 3 0
url_parse 3 0

Report details

  • Report generated by: 3d5039f
  • Inputs generator seed: 1662467492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant