←back to thread

349 points dgl | 1 comments | | HN request time: 0.34s | source
Show context
dwrodri[dead post] ◴[] No.44502622[source]
[flagged]
bpt3 ◴[] No.44502649[source]
As mentioned in the article, this is a logic error that has nothing to do with C strings.
replies(1): >>44502702 #
eptcyka ◴[] No.44502702[source]
Whilst true, there’s a swathe of modern tooling that will aide in marshalling data for IPC. Would you not agree that if protobuf, json or yaml were used, it’d be far less likely for this bug have slipped in?
replies(4): >>44502886 #>>44502968 #>>44503106 #>>44504894 #
1. bangaladore ◴[] No.44502968[source]
The OC was about language choice. You can use protobuf, json or yaml in C as well.

In general, though, all these can be wildly overkill for many tasks. At some point you just need to write good code and actually test it.