Menu

#123 Integer size mismatches around mmap64()

open
5
2010-05-05
2010-04-27
No

On 32-bit platforms with 64-bit I/O support in STLport, streamoff is 64 bits wide, but mmap64() takes a 32-bit memory block size. This causes warnings with Sun C++ 5.9 on Solaris if compiled with the +w2 warning option (which is the default in STLport).

This patch changes _M_mmap_len and various function arguments from 64-bit streamoff to 32-bit size_t.

Despite its name, the patch is not appropriate for the STLport 5.2 branch because it breaks binary compatibility.

Discussion

  • Jan Echternach

    Jan Echternach - 2010-04-27
     
  • Petr Ovtchenkov

    Petr Ovtchenkov - 2010-05-05
    • assigned_to: nobody --> complement
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.