• Jerome Marchand's avatar
    covscan: fix miscellaneaous errors (#2003) · 415bd4e4
    Jerome Marchand authored
    * Coverity #def53: COPY_PASTE_ERROR
    
    * Coverity #def18: DC.STREAM_BUFFER. Double-check max length of dev
    
    * Coverity #def44: MISSING_BREAK. This looks like it should be here
    
    * Coverity #def67: STRING_NULL: potential OOB read if 0 bytes read.
    
    * Coverity #def66: FORWARD_NULL: potential null ptr deref
    
    * Coverity #def17: RESOURCE_LEAK: missing free()
    
    * Dont free the result of dirname
    
    dirname() may return pointers to statically allocated memory. Don't
    free the pointer it returns.
    415bd4e4
libbpf.c 41.9 KB