Skip to content
Snippets Groups Projects
Commit ecd56a2f authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Suppress some of the more egregious false positives.

parent bdaa8e57
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
Pipeline #7579 passed
......@@ -1163,6 +1163,7 @@ int bitmap_setfont(int font, int force, int font_num)
old=malloc(ow*oh*sizeof(*old));
if(old) {
bitmap_vmem_gettext(1,1,ow,oh,old);
/* coverity[sleep]:SUPPRESS */
textmode(newmode);
new=malloc(ti.screenwidth*ti.screenheight*sizeof(*new));
if(!new) {
......
......@@ -1727,6 +1727,7 @@ x11_event(XEvent *ev)
if (x_cvstat.winwidth != w || x_cvstat.winheight != h) {
x_cvstat.winwidth = w;
x_cvstat.winheight = h;
// coverity[missing_lock]:SUPPRESS
x_cvstat.scaling = bitmap_double_mult_inside(w, h);
resize_xim();
}
......@@ -2043,6 +2044,7 @@ x11_event(XEvent *ev)
handle_bios_key(&bios_key, &bios_key_parsing, &zero_first);
}
else {
// coverity[overflow_const]:SUPPRESS
bios_key *= 10;
bios_key += (ks - XK_KP_0);
break;
......
......@@ -61,6 +61,7 @@ exit_function(SFTP_STATIC_TYPE state, bool retval)
{
assert(state->running > 0);
state->running--;
// coverity[missing_lock]:SUPPRESS
pthread_mutex_unlock(&state->mtx);
return retval;
}
......
......@@ -86,6 +86,7 @@ modem_output_thread(void *args)
}
sent = 0;
while (com != COM_HANDLE_INVALID && sent < wr && !conn_api.terminate) {
// coverity[overlow]:SUPPRESS
ret = comWriteBuf(com, conn_api.wr_buf + sent, wr - sent);
if (ret > 0)
sent += ret;
......
......@@ -64,6 +64,7 @@ rlogin_output_thread(void *args)
sent = 0;
while (rlogin_sock != INVALID_SOCKET && sent < wr && !conn_api.terminate) {
if (socket_writable(rlogin_sock, 100)) {
// coverity[overflow]:SUPPRESS
ret = sendsocket(rlogin_sock, conn_api.wr_buf + sent, wr - sent);
if (ret > 0)
sent += ret;
......
......@@ -320,6 +320,7 @@ ssh_output_thread(void *args)
SetThreadName("SSH Output");
conn_api.output_thread_running = 1;
// coverity[thread1_checks_field]:SUPPRESS
while (ssh_active && !conn_api.terminate && !channel_gone && !ssh_complete) {
pthread_mutex_lock(&(conn_outbuf.mutex));
wr = conn_buf_wait_bytes(&conn_outbuf, 1, 100);
......
......@@ -975,6 +975,7 @@ do_xp_play_sample(unsigned char *sampo, size_t sz, int *freed)
if (handle_type == SOUND_DEVICE_OSS) {
size_t wr = 0;
while (wr < sz) {
// coverity[overflow]:SUPPRESS
ssize_t i = write(dsp, samp + wr, sz - wr);
if (i >= 0)
wr += i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment