Closed Bug 672583 Opened 10 years ago Closed 10 years ago
Launch Handler .cc incorrectly uses NS _ARRAY _LENGTH on a pointer
>87 cpu_type_t *wanted_type = pref_cpu_types; >88 >89 if (aRestartType & nsIAppStartup::eRestarti386) >90 wanted_type = cpu_i386_types; >91 else if (aRestartType & nsIAppStartup::eRestartx86_64) >92 wanted_type = cpu_x64_86_types; >93 >94 // Set spawn attributes. >95 size_t attr_count = NS_ARRAY_LENGTH(wanted_type);
Assignee: nobody → josh
We should use a template to ensure that NS_ARRAY_LENGTH is only used on an array.
Coincidentally, I have a patch that does that, which is what found this instance.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.