version 1.122, 2016/11/25 23:24:45 |
version 1.123, 2017/03/26 00:18:52 |
|
|
* implicit realloc() in the sshbuf code. |
* implicit realloc() in the sshbuf code. |
*/ |
*/ |
if ((st.st_mode & S_IFREG) == 0 || st.st_size <= 0) { |
if ((st.st_mode & S_IFREG) == 0 || st.st_size <= 0) { |
st.st_size = 64*1024; /* 64k should be enough for anyone :) */ |
st.st_size = 64*1024; /* 64k ought to be enough for anybody. :) */ |
dontmax = 1; |
dontmax = 1; |
} |
} |
if ((r = sshbuf_allocate(blob, st.st_size)) != 0 || |
if ((r = sshbuf_allocate(blob, st.st_size)) != 0 || |