Commit ae7ce172 authored by Moe Jette's avatar Moe Jette
Browse files

Patch from Gerrit: 04_hostlist__hostrange_numstr.diff

hostrange_numstr(): overflow cases

This checks hostrange_numstr() for overflow cases:		    
 * requires n > dims (if dims=1, min 1 digit, else dim + '\0' digits);
   - this precondition simplifies many subsequent checks and
   - addresses if (len == n) then len++ means buf[len] = buf[n];
 * also checks return value of the snprintfs.
parent ba60b6a0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment