vtorri / ewpi

EFL Windows package installer
GNU General Public License v2.0
12 stars 7 forks source link

Fixes crashes when we modify dependencies in ewpi packages #22

Open felipealmeida opened 3 years ago

felipealmeida commented 3 years ago

The crash happens because the _ew_package_index is not filled for dependencies not found in the current compilation, but array is iterated over all indices anyway, instead of just the dependencies dst count.

The array returns garbage which is then dereferenced in _ewpi_pkgs and crashes.

This patch makes this iterate over just the dependencies instead, and as such doesn't iterate over uninitialized array elements.