• Dylan Yudaken's avatar
    Fix potential buffer overflow in use of strncat · 2e5a8ccb
    Dylan Yudaken authored
    Summary: There is a bug in ElfFile using strncat which could cause buffer overflows when a previous file open failed. strncat only limits based on the src length, and so if strlen(dest) > 0 this could have overflowed.
    
    Reviewed By: anakryiko
    
    Differential Revision: D13398108
    
    fbshipit-source-id: 793c35884f1e639f36758f36046158858fd5976a
    2e5a8ccb
Elf.cpp 12 KB