miconda left a comment (kamailio/kamailio#4439)

You have to provide details about the operating system and the compiler. On the 
net I found others reporting that could be false positives by some compiler 
versions. The p is `unsigned char*`, so all should be fine.

```
src/modules/ctl/binrpc.h:335:20: warning: writing 16 bytes into a region of 
size 8 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Another warning is also strange, same line with different context, but about 
writing 1 byte, not 16:

```
src/modules/ctl/binrpc.h:335:20: warning: writing 1 byte into a region of size 
0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4439#issuecomment-3522231673
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4439/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to