mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[python] Turtle module: fix modturtle_gc_collect from stack-buffer-overflow
This commit is contained in:
committed by
EmilieNumworks
parent
9c2fc84cd0
commit
c0da810ea1
@@ -8,7 +8,7 @@ static Turtle sTurtle;
|
||||
|
||||
void modturtle_gc_collect() {
|
||||
// Mark the shared sTurtle object as a GC root
|
||||
gc_collect_root((void **)&sTurtle, sizeof(Turtle));
|
||||
gc_collect_root((void **)&sTurtle, sizeof(Turtle)/sizeof(void *));
|
||||
}
|
||||
|
||||
void modturtle_view_did_disappear() {
|
||||
|
||||
Reference in New Issue
Block a user