Guard against pathologically small buffer