Bug 2178069 - rfc3315.c:344:7: warning[deadcode.DeadStores]: Value stored to 'outmsgtype' is never read
Summary: rfc3315.c:344:7: warning[deadcode.DeadStores]: Value stored to 'outmsgtype' i...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: dnsmasq
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Petr Menšík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-14 11:10 UTC by Petr Menšík
Modified: 2023-08-16 08:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Menšík 2023-03-14 11:10:09 UTC
Description of problem:
Reported by coverity scan of RHEL8 package.

1. dnsmasq-2.79/src/rfc3315.c:344:7: warning[deadcode.DeadStores]: Value stored to 'outmsgtype' is never read
#   342|       
#   343|       {  
#   344|->       outmsgtype = DHCP6REPLY;
#   345|         o1 = new_opt6(OPTION6_STATUS_CODE);
#   346|         put_opt6_short(DHCP6USEMULTI);


Similar version is still on line 351 in latest upstream release.

Version-Release number of selected component (if applicable):
dnsmasq-2.89-1.fc39

How reproducible:
reliable

Steps to Reproduce:
1. run coverity scan on dnsmasq
2.
3.

Actual results:
1. Defect type: CLANG_WARNING
1. dnsmasq-2.79/src/rfc3315.c:344:7: warning[deadcode.DeadStores]: Value stored to 'outmsgtype' is never read
#   342|       
#   343|       {  
#   344|->       outmsgtype = DHCP6REPLY;
#   345|         o1 = new_opt6(OPTION6_STATUS_CODE);
#   346|         put_opt6_short(DHCP6USEMULTI);


Expected results:
Nothing reported

Additional info:

Comment 1 Petr Menšík 2023-03-14 11:53:36 UTC
Reported upstream with candidate patch:

https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2023q1/016930.html

Comment 2 Petr Menšík 2023-03-16 10:54:22 UTC
Fixed by upstream a bit different way:
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=00be8b39e240934e404533deda08cbae2aae25a8

Comment 3 Fedora Release Engineering 2023-08-16 08:14:57 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.


Note You need to log in before you can comment on or make changes to this bug.