Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Don't use temporary buffers when parsing PID maps in pmparser #202

Merged
merged 1 commit into from
Mar 24, 2021
Merged

Don't use temporary buffers when parsing PID maps in pmparser #202

merged 1 commit into from
Mar 24, 2021

Commits on Mar 24, 2021

  1. Don't use temporary buffers when parsing PID maps in pmparser

    FORTIFY_SOURCE is upset that the source buffer sizes for the strcpys in
    pmparser_parse() are larger than the destination buffers. Using the
    destination buffer directly fixes runtime crashes like these:
    03-24 10:53:16.802  2758  2758 F libc    : FORTIFY: strcpy: prevented 8-byte write into 5-byte buffer
    03-24 10:53:16.802  2758  2758 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 2758 (main), pid 2758 (main)
    kerneltoast committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    63ce83a View commit details
    Browse the repository at this point in the history