| Fix null pointer dereferencing. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sys/libkern/iconv_xlat16.c freebsd-10.4/sys/libkern/iconv_xlat16.c |
| --- /var/archive3/public/freebsd-releng-10.4-src/sys/libkern/iconv_xlat16.c 2017-09-29 08:20:08.000000000 +0800 |
| +++ freebsd-10.4/sys/libkern/iconv_xlat16.c 2019-08-17 23:26:28.240363349 +0800 |
| @@ -190,6 +190,10 @@ |
| } |
| } |
| |
| + if(!dp->d_table[c1]) { |
| + ret = -1; |
| + break; |
| + } |
| code = dp->d_table[c1][c2]; |
| if (!code) { |
| ret = -1; |