Skip to content
Snippets Groups Projects
  • Erik Karlsson's avatar
    7e013f0a
    Do not read entire file into buffer when extracting · 7e013f0a
    Erik Karlsson authored
    Only read FDT into buffer, and then in case of external image, use
    lseek followed by sendfile if supported or otherwise read/write.
    
    Remove unnecessary strdup of option arguments that would leak memory
    in case options are repeated.
    
    Fix confusing error message with --attribute when --image is used to
    specify a non-existing image.
    7e013f0a
    History
    Do not read entire file into buffer when extracting
    Erik Karlsson authored
    Only read FDT into buffer, and then in case of external image, use
    lseek followed by sendfile if supported or otherwise read/write.
    
    Remove unnecessary strdup of option arguments that would leak memory
    in case options are repeated.
    
    Fix confusing error message with --attribute when --image is used to
    specify a non-existing image.