Displaying 2 results from an estimated 2 matches for "ulogd_key_size".
2017 Oct 19
0
[Bug 1192] New: ULOGD_RET_RAWSTR type is not listed on ulogd_key_size() and type_to_string()
https://bugzilla.netfilter.org/show_bug.cgi?id=1192
Bug ID: 1192
Summary: ULOGD_RET_RAWSTR type is not listed on
ulogd_key_size() and type_to_string()
Product: ulogd
Version: SVN (please provide timestamp)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: ulogd
Assignee: netfilter-buglog at lists.netfi...
2017 Oct 19
0
[Bug 1193] New: Incorrect malloc for SQL statements and missing strings length check
...3, key->name, type_to_string(key->type));
+ size += (SQL_STRINGSIZE * 2) + 3;
+ } else {
+ /* key_length is the maximum strlen for the specified integer type
(ex: ULOGD_RET_INT32 lowest value is -2147483648 which is 11 characters long)
*/
+ key_length = ulogd_key_size(key);
+ if(key_length < 1) {
+ /* ulogd_key_size() returns -1 for key types it does not know
*/
+ key_length = SQL_STRINGSIZE;
+ ulogd_log(ULOGD_ERROR, "%s key length cannot be determined,
forced to %hd bytes", upi->input.keys[...