Security/Reviews/Firefox4/JS-ctypes: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
See https://bugzilla.mozilla.org/show_bug.cgi?id=627107 and https://bugzilla.mozilla.org/show_bug.cgi?id=627097. IMO, we should find a way to make memory management in js-ctypes less error-prone and add more safety mechanisms to detect/prevent usages of memory via pointers to js-ctypes-rooted GC'd objects.
See https://bugzilla.mozilla.org/show_bug.cgi?id=627107 and https://bugzilla.mozilla.org/show_bug.cgi?id=627097. IMO, we should find a way to make memory management in js-ctypes less error-prone and add more safety mechanisms to detect/prevent usages of memory via pointers to js-ctypes-rooted GC'd objects.


I have also seen "if (!item)" vs "item.isNull()" confusion.
I have seen some misunderstanding of when to use "if (!item)" vs "item.isNull()" and when to use "item" vs "item.address()".
Confirmed users
69

edits

Navigation menu