Skip to content
  • Thomas Haller's avatar
    core: extend nm_utils_*_get_contents() to zero temporary memory · 6b813b90
    Thomas Haller authored
    When reading a file, we may allocate intermediate buffers (realloc()).
    Also, reading might fail halfway through the process.
    
    Add a new flag that makes sure that this memory is cleared. The
    point is when reading secrets, that we don't accidentally leave
    private sensitive material in memory.
    6b813b90