Home
last modified time | relevance | path

Searched hist:"079171874 c9bf263b69e3af10784ad2bcd1fe699" (Results 1 – 5 of 5) sorted by relevance

/freebsd/lib/libc/tests/iconv/
H A Diconvctl_test.c079171874c9bf263b69e3af10784ad2bcd1fe699 Sat May 14 02:35:35 CEST 2016 Eric van Gyzen <vangyzen@FreeBSD.org> iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056
MFC after: 3 days
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D6338
H A DMakefile079171874c9bf263b69e3af10784ad2bcd1fe699 Sat May 14 02:35:35 CEST 2016 Eric van Gyzen <vangyzen@FreeBSD.org> iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056
MFC after: 3 days
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D6338
/freebsd/lib/libc/iconv/
H A Dbsd_iconv.cdiff 079171874c9bf263b69e3af10784ad2bcd1fe699 Sat May 14 02:35:35 CEST 2016 Eric van Gyzen <vangyzen@FreeBSD.org> iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056
MFC after: 3 days
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D6338
/freebsd/lib/libc/tests/
H A DMakefilediff 079171874c9bf263b69e3af10784ad2bcd1fe699 Sat May 14 02:35:35 CEST 2016 Eric van Gyzen <vangyzen@FreeBSD.org> iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056
MFC after: 3 days
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D6338
/freebsd/etc/mtree/
H A DBSD.tests.distdiff 079171874c9bf263b69e3af10784ad2bcd1fe699 Sat May 14 02:35:35 CEST 2016 Eric van Gyzen <vangyzen@FreeBSD.org> iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056
MFC after: 3 days
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D6338