[sr-dev] git:4.2:fd6dba3b: regex: safety to check to avoid working with zero size allocations