[WID-3498058] Buffer 'rset.__fds_bits' of size 32
accessed at dp_client_manager() can overflow,
since its index 'g_dp_sock / 32' can have value
50331680
that is out of range, as indicated by preceding conditional expression.
Change-Id: I6c9c51903faa1df6c207670ab4b63b01038bcb70
Name: download-provider
Summary: Download the contents in background
-Version: 2.1.114
+Version: 2.1.115
Release: 0
Group: Development/Libraries
License: Apache-2.0
int fd_base, listen_fds = sd_listen_fds(1);
TRACE_DEBUG("sd_listen_fds:%d", listen_fds);
- if (listen_fds > INT_MAX) {
+ if (listen_fds > FD_SETSIZE - 3) {
TRACE_DEBUG("sd_listen_fds:%d", listen_fds);
return -1;
}