commit | 5fb265eaa725928b59b44aa9bfe8959256014ba1 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Apr 05 14:36:31 2015 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Sun Apr 05 14:40:10 2015 +0200 |
tree | 8b583430fe6b7598beac1cd855dca0c2d20793b8 | |
parent | 4e0543f730b255849305787ecce89867e89f40f8 [diff] |
ctrl: Avoid accessing cmd_desc->command out of bounds We check that the amount of commands is not more than we have but we don't check it the other way. It appears that the vector is allowed to be bigger than the amount of commands. So we match a prefix of a longer command depending on the installation order.