From 3a236648d33d40cb1034958f5891133a066712e8 Mon Sep 17 00:00:00 2001 From: Kevin Larke Date: Sat, 23 Apr 2016 16:07:42 -0400 Subject: [PATCH] cmScore.c : Check that the score symbol table is valid at the beginning of cmScorePrintSets(). --- app/cmScore.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/cmScore.c b/app/cmScore.c index c1566c7..6d6e4b4 100644 --- a/app/cmScore.c +++ b/app/cmScore.c @@ -2443,6 +2443,9 @@ void cmScorePrintSets( cmScH_t h, cmRpt_t* rpt ) cmSc_t* p = _cmScHandleToPtr(h); unsigned i,j,k; + // the score must have been opened with a valid symbol table + assert( cmSymTblIsValid(p->stH) ); + for(i=0,k=0; ilocCnt; ++i) {