Fix infinite loop in Cursor::readTerminatedString
Summary: readTerminatedString could infinite loop if the terminator does not appear in the contained IOBuf chain and maxLength > chain.computeChainLength. I'm throwing out_of_range here because that more closely mirrors what the other read() functions do. Reviewed By: siyengar Differential Revision: D2571039 fb-gh-sync-id: 1db22089562d8767920d66a0a1b091b02de6571f
Showing
Please register or sign in to comment