Project

General

Profile

Bug #223 ยป 0004-Fix-bad-memory-access-in-rscompat-code.patch

Marko Lindqvist, 02/01/2024 03:40 PM

View differences:

server/rscompat.c
for (i = 0; i < ARRAY_SIZE(base_to_extra_flag_map_3_0); i++) {
if (BV_ISSET(pbase->flags, base_to_extra_flag_map_3_0[i].from)) {
/* Set the *extra* user flag */
BV_SET(pextra->flags, base_to_extra_flag_map_3_0[i].to);
if (extra_flag_id_is_valid(base_to_extra_flag_map_3_0[i].to)) {
BV_SET(pextra->flags, base_to_extra_flag_map_3_0[i].to);
}
/* Remove the retired *base* flag. */
BV_CLR(pbase->flags, base_to_extra_flag_map_3_0[i].from);
}
    (1-1/1)