4 ms·
I think the author is correct that the primary likely problem is mapping pid values into DB or textual files, with fixed fieldwidth assumptions. What this made
by ggm 7y ago
I think the author is correct that the primary likely problem is mapping pid values into DB or textual files, with fixed fieldwidth assumptions.
What this made me realize, is that because I do this so little overtly, I hadn't even considered it a high risk. I do have pids in files: /var/run/nginx.pid style. They aren't fixed width fields.
Top and the like may mis-display on a wide pid I guess, unless its set to use some truncating field but then you get a problem of mis-attributing the PID value to the truncated value, cut/paste.. BOOM