CTSRD-CHERI / cheribsd-ports

FreeBSD ports tree adapted for CheriBSD.
https://CheriBSD.org
Other
5 stars 11 forks source link

ports-mgmt/dialog4ports: add the CheriBSD patch #166

Closed kwitaszczyk closed 1 month ago

kwitaszczyk commented 1 month ago

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.

kwitaszczyk commented 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.