diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-07-23 12:14:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-07-23 12:14:39 +0100 |
commit | b12c835d4de882a8156d28c95a3f931fadcdd3a7 (patch) | |
tree | 67ba25412e9081f7e3bc79b1cb47c31f676a7d88 /comphelper/source/xml | |
parent | a5f82cf7eb393d0c4265e4876b155dc875a05f43 (diff) |
coverity#1312139 random byte is deliberate
Change-Id: Iff546476256c87813b01a7db2c8331f926b7e3bd
Diffstat (limited to 'comphelper/source/xml')
-rw-r--r-- | comphelper/source/xml/xmltools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/xml/xmltools.cxx b/comphelper/source/xml/xmltools.cxx index 5473873625a8..b1fcc6a5b59a 100644 --- a/comphelper/source/xml/xmltools.cxx +++ b/comphelper/source/xml/xmltools.cxx @@ -80,8 +80,8 @@ namespace comphelper sal_Int8 n; rtl_random_getBytes(pool, &n, 1); - //1024 minus max -127/plus max 128 sal_Int32 nLength = 1024+n; + // coverity[tainted_data] - 1024 deliberate random minus max -127/plus max 128 std::vector<sal_uInt8> aChaff(nLength); rtl_random_getBytes(pool, &aChaff[0], nLength); |