1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00
Andreas Schneider ff7568daae s3:lib: Use memcpy() in escape_ldap_string()
../source3/lib/ldap_escape.c: In function ‘escape_ldap_string’:
../source3/lib/ldap_escape.c:79:4: error: ‘strncpy’ output truncated
    before terminating nul copying 3 bytes from a string of the same length
[-Werror=stringop-truncation]
    strncpy (p, sub, 3);
    ^~~~~~~~~~~~~~~~~~~

We concatenat and do not care about NUL-termination till the loop has
finished.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
2018-05-17 17:30:09 +02:00
..
2018-04-24 01:53:19 +02:00
2012-03-24 17:11:11 +01:00
2018-05-12 02:09:26 +02:00
2017-10-20 20:03:12 +02:00
2016-07-28 05:00:18 +02:00
2017-11-27 04:51:59 +01:00
2017-05-10 15:53:20 +02:00
2017-02-15 02:28:16 +01:00
2017-01-22 18:30:11 +01:00
2017-11-29 16:59:16 +01:00
2015-11-06 13:43:45 +01:00
2015-10-13 01:23:07 +02:00
2014-09-18 20:36:11 +02:00
2017-12-05 04:58:26 +01:00
2014-11-25 07:25:44 +01:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2015-02-13 23:32:07 +01:00
2016-02-23 22:03:16 +01:00
2015-03-17 11:30:52 +01:00
2017-01-22 18:30:11 +01:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2018-02-20 21:55:13 +01:00
2012-05-15 18:24:10 +02:00
2016-12-28 20:17:12 +01:00
2016-01-10 22:24:17 +01:00
2016-01-10 22:24:17 +01:00
2016-12-28 20:17:13 +01:00
2012-04-19 19:13:45 +02:00