Bug 1355

Summary: pointer arithmetic/gcc strict-aliasing warnings
Product: Portable OpenSSH Reporter: Darren Tucker <dtucker>
Component: MiscellaneousAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor Keywords: patch
Priority: P2    
Version: -current   
Hardware: All   
OS: All   
URL: http://lists.mindrot.org/pipermail/openssh-unix-dev/2007-April/025274.html
Bug Depends on:    
Bug Blocks: 1353    

Description Darren Tucker 2007-08-16 09:41:03 AEST
Recent versions of gcc emit a the following warnings:

readconf.c: In function 'process_config_line':
readconf.c:695: warning: dereferencing type-punned pointer will break strict-aliasing rules
servconf.c: In function 'process_server_config_line':
servconf.c:979: warning: dereferencing type-punned pointer will break strict-aliasing rules
servconf.c:990: warning: dereferencing type-punned pointer will break 
strict-aliasing rules

Dmitry V. Levin has posted a diff to fix these (see URL).
Comment 1 Darren Tucker 2007-12-31 21:42:18 AEDT
This has been applied and will be in 4.8.
Comment 2 Damien Miller 2008-03-31 15:21:08 AEDT
Fix shipped in 4.9/4.9p1 release.