Commit e1879c07 authored by Bartosz Podrygajlo's avatar Bartosz Podrygajlo

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.
parent 8eb9e3d9
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment