20 Sep, 2018

1 commit


12 Jul, 2018

1 commit

  • reallocarray() is a safer variant of realloc which checks for
    multiplication overflow in case of array allocation. Since it's
    not available in Glibc < 2.26 import kernel's overflow.h and
    add a static inline implementation when needed. Use feature
    detection to probe for existence of reallocarray.

    Signed-off-by: Jakub Kicinski
    Reviewed-by: Quentin Monnet
    Reviewed-by: Jiong Wang
    Signed-off-by: Daniel Borkmann

    Jakub Kicinski