gustafn
committed
on 14 Oct 13
- improve robustness against invalid input