Skip to content

Commit

Permalink
Fix CSV loader segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
Rens committed Aug 5, 2024
1 parent fd51e24 commit 94ac477
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
1 change: 1 addition & 0 deletions Desktop/data/importers/csv/csv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ void CSV::determineNumRows()

if (i >= _utf8BufferEndPos - 1)
{
_utf8BufferEndPos = 0;
bool success = readUtf8();
if (success)
i = -1;
Expand Down
33 changes: 32 additions & 1 deletion Tools/CMake/Modules.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,41 @@ set(JASP_TEST_MODULE "jaspDescriptives" CACHE STRING "Which module other than ja
if(NOT JASP_TEST_BUILD)
set(JASP_COMMON_MODULES
"jaspDescriptives"
"jaspTTests"
"jaspAnova"
"jaspMixedModels"
"jaspRegression"
"jaspFrequencies"
"jaspFactor"
)

set(JASP_EXTRA_MODULES

"jaspAcceptanceSampling"
"jaspAudit"
"jaspBain"
"jaspBsts"
"jaspCircular"
"jaspCochrane"
"jaspDistributions"
"jaspEquivalenceTTests"
"jaspJags"
"jaspLearnBayes"
"jaspLearnStats"
"jaspMachineLearning"
"jaspMetaAnalysis"
"jaspNetwork"
"jaspPower"
"jaspPredictiveAnalytics"
"jaspProcess"
"jaspProphet"
"jaspQualityControl"
"jaspReliability"
"jaspRobustTTests"
"jaspSem"
"jaspSurvival"
"jaspSummaryStatistics"
"jaspTimeSeries"
"jaspVisualModeling"
)
else() #it IS a test build
message(STATUS "JASP_TEST_BUILD is enabled, building with minimal modules")
Expand Down

0 comments on commit 94ac477

Please sign in to comment.