That's a classic textbook bug you learn to test for in software developer class. And as a developer, it's edge cases like this you are always thinking about.
Similar to testing strings containing apostrophes when handling apostrophe delimited strings. Or semicolon delimited name/value pairs containing semicolons.
I wonder if this code was machine generated. There is a bug bounty bonanza right now due to machines creating bugs that are traditionally rare because the human developers had those fail points hammered into them as junior devs.
Login to reply
Replies (1)
Right, it's a contract according to the spec, but wasn't enforced.
Don't think the buggy code was generated since it's a leftover from the old protocol (that's pre LLMs catching on).