Closed Bug 1317949 Opened 8 years ago Closed 8 years ago

Fails to build RTCCertificate.cpp with gcc 7.0

Categories

(Core :: WebRTC, defect, P3)

50 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1335075

People

(Reporter: Sylvestre, Unassigned)

References

Details

An experimental version of gcc 7 is available in Debian https://tracker.debian.org/pkg/gcc-7 Trying to build Firefox with it, it fails on the warning here: /root/firefox-gcc-last/dom/media/webrtc/RTCCertificate.cpp:84:12: error: output truncated before the last format character [-Werror=format-length=] nsresult GenerateCertificate() ^~~~~~~~~~~~~~~~~~~ /root/firefox-gcc-last/dom/media/webrtc/RTCCertificate.cpp:77:58: note: format output 3 bytes into a destination of size 2 snprintf(&buf[i * 2 + 3], 2, "%.2x", randomName[i]); ^
jesup, does that seem legit? I think it is.
Flags: needinfo?(rjesup)
Looks good to my analysis. Likely compiler bug. Admittedly you really need to look...
Flags: needinfo?(rjesup)
Rank: 37
Priority: -- → P3
Blocks: build-gcc-7
Depends on: 1320878
No longer depends on: 1320878
Sorry for the noise, seems that I need holidays :)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.