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

fuzzing: empty list #462

Closed
mcol opened this issue Nov 22, 2024 · 0 comments · Fixed by #463
Closed

fuzzing: empty list #462

mcol opened this issue Nov 22, 2024 · 0 comments · Fixed by #463
Labels
Milestone

Comments

@mcol
Copy link
Contributor

mcol commented Nov 22, 2024

This script:

library(CBTF)
funs <- get_exported_functions("Luminescence",
                               c("Analyse_SAR.OSLdata",
                                 "calc_MaxDose",
                                 "get_Quote",
                                 "github_commits",
                                 "install_DevelopmentVersion",
                                 "plot_GrowthCurve",
                                 "show",
                                 "tune_Data"))
what <- list()
fuzz(funs, what, ignore.patterns = NULL, ignore.warnings = TRUE)

Produces:

	🚨   CAUGHT BY THE FUZZ!   🚨

FAIL: analyse_Al2O3C_CrossTalk ( list )
    subscript out of bounds

FAIL: analyse_Al2O3C_Measurement ( list )
    subscript out of bounds

FAIL: analyse_IRSAR.RF ( list )
    subscript out of bounds

FAIL: analyse_portableOSL ( list )
    subscript out of bounds

FAIL: extract_IrradiationTimes ( list )
    subscript out of bounds

FAIL: fit_SurfaceExposure ( list )
    subscript out of bounds

FAIL: get_RLum ( list )
    subscript out of bounds

FAIL: merge_RLum.Analysis ( list )
    subscript out of bounds

FAIL: merge_RLum.Data.Curve ( list )
    subscript out of bounds

FAIL: merge_RLum.Data.Spectrum ( list )
    subscript out of bounds

FAIL: merge_RLum.Results ( list )
    subscript out of bounds

FAIL: plot_AbanicoPlot ( list )
    subscript out of bounds

FAIL: plot_DRCSummary ( list )
    subscript out of bounds

FAIL: plot_DRTResults ( list )
    subscript out of bounds

FAIL: plot_FilterCombinations ( list )
    'names' attribute [2] must be the same length as the vector [0]

FAIL: plot_ROI ( list )
    no 'dimnames' attribute for array

FAIL: read_BIN2R ( list )
    subscript out of bounds

FAIL: read_Daybreak2R ( list )
    subscript out of bounds

FAIL: read_XSYG2R ( list )
    subscript out of bounds

FAIL: write_R2TIFF ( list )
    subscript out of bounds

FAIL: write_RLum2CSV ( list )
    subscript out of bounds

Part of #439.

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

Successfully merging a pull request may close this issue.

1 participant