You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.
Currently ivy deserialize for string literals produces a loop which does not advance the loop index, effectively creating an infinite loop
Look at the code extracted:
while (pos < inp.size() && inp[pos]) {
if (inp[pos] == '"')
throw deser_err();
}
res.push_back(inp[pos++]);
}
Additionally i think it might be better to serialize the string size at the beggining of the package rather than checking for the first '\0' tab, that is because some users might want to treat the string as a generic buffer to store any binary piece of data.
The text was updated successfully, but these errors were encountered:
Hi Marcelo,
The string deserialization bug is fixed in a branch pldi18 (which doesn’t have the multiple ‘after init’ feature). I didn’t switch to using a length field because I’m not sure how std::string handles nulls in the string. If you really need to send binary data, let me know…
Currently ivy deserialize for string literals produces a loop which does not advance the loop index, effectively creating an infinite loop
Look at the code extracted:
Additionally i think it might be better to serialize the string size at the beggining of the package rather than checking for the first '\0' tab, that is because some users might want to treat the string as a generic buffer to store any binary piece of data.
The text was updated successfully, but these errors were encountered: