This is coverity issue:
CID: 595 Checker: OVERRUN_STATIC (help) File: base/src/source/blender/python/api2_2x/sceneSequence.c Function: Sequence_setProxyDir Description: Overrun of static array "&((((self)->seq)->strip)->proxy)->dir" of size 160 bytes by passing it to a function which indexes it with argument "248" at byte position 247 Wasn't using the size of dir it was using the sizeof the struct dir is in. Fixed. Kent
This commit is contained in:
@@ -727,7 +727,7 @@ static int Sequence_setProxyDir(BPy_Sequence * self, PyObject * value)
|
||||
else
|
||||
{
|
||||
self->seq->strip->proxy = MEM_callocN(sizeof (struct StripProxy), "StripProxy");
|
||||
strncpy(self->seq->strip->proxy->dir, name, sizeof (struct StripProxy));
|
||||
strncpy(self->seq->strip->proxy->dir, name, 160);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user