1. use WELS_CLIP1 to replace table look-up;
2. fix bugs about buffer overflow
3. add more boundary checks
Merge pull request #193 from licaiguo/fix-sanitize-error-3

fix sanitize error -- review request #39