Dear Andrew,
        Yes, it is a potential issue.
http://sonarsrv.spazioit.com:9000/dashboard/index?id=my%3Anaviserver%3Ansd%2
Fsockfile.c
Maurizio



-----Original Message-----
From: Andrew Piskorski [mailto:a...@piskorski.com] 
Sent: 08 October 2014 07:48
To: naviserver-devel@lists.sourceforge.net
Subject: [naviserver-devel] warning, shift count undefined behavior

Hm, this warning sounds kind of scary:

  sockfile.c(351) : warning C4293: '>>' : shift count negative or too big,
undefined behavior

That's in the Windows-only implementation of pread(), in nsd/sockfile.c:

  overlapped.Offset = (DWORD)offset;
  overlapped.OffsetHigh = ((DWORD)offset >> 32); 

I don't know if it's a real problem or how to fix it.

Some related docs:
http://msdn.microsoft.com/en-us/library/cx0bb1cy.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684342%28v=vs.85%2
9.aspx

--
Andrew Piskorski <a...@piskorski.com>

----------------------------------------------------------------------------
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI
DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you
Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI
DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to