On 8/23/20 7:20 PM, David Ahern wrote:
External email: Use caution opening links or attachments On 8/20/20 9:52 PM, Roopa Prabhu wrote:+void protodown_reason_n2a(int id, char *buf, int len) +{ + if (id < 0 || id >= PROTODOWN_REASON_NUM_BITS || numeric) {since the reason is limited to 0-31, id > PROTODOWN_REASON_NUM_BITS should be an error.
copy paste from other functions in rt_names which do the same thing. v2 coming with fix for this and other comments. thanks for the review.