Fix segfault when attempting to use unsupported scope types in nrscope
Do not attempt to copy scope types >= MAX_SCOPE_TYPES in nrscope as it does not support them at this point.
This commit is contained in:
@@ -60,6 +60,9 @@ int end_forms(void) {
|
||||
|
||||
void copyData(void *scopeData, enum scopeDataType type, void *dataIn, int elementSz, int colSz, int lineSz, int offset, metadata *meta)
|
||||
{
|
||||
if (type >= MAX_SCOPE_TYPES) {
|
||||
return;
|
||||
}
|
||||
scopeData_t *tmp = (scopeData_t *)scopeData;
|
||||
|
||||
if (tmp) {
|
||||
|
||||
Reference in New Issue
Block a user