Code review comment for lp:~jdstrand/snap-confine/fix-udev-for-1604

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

> This string test is incomplete for a couple reasons:
>
> 1) tagname_len could be greater than the size of the tagname buffer
> 2) the tagname buffer could be unterminated

True. I was thinking about the must_snprintf() that was called to set it would have taken care of this, but if we are doing all these checks for future-proof coding, we should do all the checks.

« Back to merge proposal