logoalt Hacker News

eqvinoxyesterday at 8:47 PM1 replyview on HN

splice() should maybe generally refuse to operate on things you can't write to.


Replies

toast0yesterday at 9:38 PM

splice is documented to return EBADF if "One or both file descriptors are not valid, or do not have proper read-write mode."

So it seems surprising to me that you can call it when the out fd is not writable? But I didn't retain the information about the vulnerability, so I'm missing something. There was something about copy on write, IIRC?

show 1 reply