get_qae_path() as of e880e54 uses readlink(). It may write the trailing nul-byte past the end of p_file_path if the size of the symlink string is buf_size or larger. I think the proper check of the return value of readlink in this context is if i < 0 || i > ((ssizte_t)buf_size - 1). This will detect truncation and any odd errors.
Other users of readlink() in this repository already do similar checks.
get_qae_path() as of e880e54 uses
readlink(). It may write the trailing nul-byte past the end ofp_file_pathif the size of the symlink string isbuf_sizeor larger. I think the proper check of the return value ofreadlinkin this context isif i < 0 || i > ((ssizte_t)buf_size - 1). This will detect truncation and any odd errors.Other users of
readlink()in this repository already do similar checks.