• cypherpunks's avatar
    Fix backtrace compilation on FreeBSD · 07cca627
    cypherpunks authored and Nick Mathewson's avatar Nick Mathewson committed
    On FreeBSD backtrace(3) uses size_t instead of int (as glibc does). This
    causes integer precision loss errors when we used int to store its
    results.
    
    The issue is fixed by using size_t to store the results of backtrace(3).
    
    The manual page of glibc does not mention that backtrace(3) returns
    negative values. Therefore, no unsigned integer wrapping occurs when its
    result is stored in an unsigned data type.
    07cca627