Closed kwitaszczyk closed 1 month ago
I'm not sure I get the logic of placing patches that aren't cheri or cheribsd specific in cheribsd.patch but if that's what is being done fine.
cheribsd.patch files include changes that were necessary to make ports work on CheriBSD/CHERI. Modifications to existing patch files result in conflicts when merging upstream, which in some cases are unnecessary, e.g. when diff line numbers change but the patch context doesn't.
Prevent DLGK_ITEM_NEXT access beyond the bounds of the list. Moving the check forward mirrors the existing patch for the DLGK_ITEM_PREV action.