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 #8

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

Conversation

FabrizioSandri
Copy link

@FabrizioSandri FabrizioSandri commented Aug 30, 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

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_ Invalid read of size 8 human_getset.cpp:5 No Address Trace found
Test code
testlist <- list(element = 502276825L, names = c(NA, "pgsesrbxfrvqrvjmkiyw", NA, NA, NA, "guqvitxb", NA, NA, "kwp", NA))
result <- do.call(humaniformat:::get_, testlist)
parse_names 58 bytes in 1 blocks are possibly lost in loss record 19 of 1,358 human_parse.cpp:62 No Address Trace found
Test code
testlist <- list(names = c(NA, "colthyjizuaoliganqrs", NA, "oktrpgpwsulzrsmhmqsm", "offhfr", "cjefxjmmsdyriqlbsmzz", "iasjanvfnjlirkuhsjca", NA, "jxphjowdexypkmqqrvmf", "ystsbmydxfbjbxissloz", "zdhoczwersdvzwvxapho", NA, "aynbajrobruktckvojjr", NA, "kywbnjhpdybwvdnbwniv", NA, "jumujejmfyssqvjpesiv", "nbperrnfsofczhjopbvh", "xgmcaxbfzdmxatcphnjy", NA, NA, "dzscnflwuvjwnsynoywk", "njdzphvzdsltwxoevkkc", "ebk", NA, NA, "jrlsxdbljf", "hbrfnmgakspwhgngpitf", "lqzbpnryiohfrhth", NA, "cevlybgzwzyqamldovha", "hyfgqyjmgtkgrcpedeby", "fqqioquegnkzdbbkrark", "ksdng", NA, "qskxpqulimgevezqkogk", "fowtw", "ewea", "wnzvibizivaobdwxpgrq", "tgbzvmrlqcmlqq", NA, "jmtzsjirdhscis", "", NA, "tcledcdvlyhsolanro", "ffhwxezscml", NA, "qugsmhpddbeezitnufjh", "akpgmlbxiyjfmazrrkvj", "cnqyvprowaesjliijpsw", "cgzpsupqpymqtijatzsf", NA, "mbystxnqgugw", "jljgurtuekudontcsujt", NA, "livtthfvttjvgmrslqqb", "rwqafhdmjzdvtnegusik", NA, "ouuscmmuudesp", NA, "zumllovkywf", NA))
result <- do.call(humaniformat:::parse_names, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
format_period 3 0
format_reverse 3 0
get_ 3 3
parse_names 3 2

Report details

  • Report generated by: f07a00d
  • Inputs generator seed: 1661798647

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.

None yet

1 participant