a142c87 Backport patches to fix issues gcc-13 and -D_FORTIFY_SOURCE=3

Authored and Committed by zbyszek a year ago
    Backport patches to fix issues gcc-13 and -D_FORTIFY_SOURCE=3
    
    gcc has a new warning which caught a bug of int/enum mismatches.
    And we would crash on some architectures when built with -D_FORTIFY_SOURCE=3
    because of our malloc_usable_size() use.
    
    This should resolve the build failure in F38 mass build.
    
        
file modified
+6 -0