Skip to content
  • anonymouspage's avatar
    b1cbde10
    ciolib_puttext: free() is not reachable · b1cbde10
    anonymouspage authored
    As far as I can tell, this free() in ciolib_puttext() is not reachable
    given the current logic in the function; and, the value of buf is not
    modified by any called functions.
    
    Also, this function is invoked with stack allocated buffers, so it
    isn't safe to assume a free() is valid in this context. Better to let
    the owner of the buffer manage the lifecycle.
    b1cbde10
    ciolib_puttext: free() is not reachable
    anonymouspage authored
    As far as I can tell, this free() in ciolib_puttext() is not reachable
    given the current logic in the function; and, the value of buf is not
    modified by any called functions.
    
    Also, this function is invoked with stack allocated buffers, so it
    isn't safe to assume a free() is valid in this context. Better to let
    the owner of the buffer manage the lifecycle.
Loading