[Bug] [interprocess] Data loss in boost::interprocess::detail::truncate_file

Hi, boost::interprocess::detail::*truncate_file* accepts *size_t* instead of * offset_t*. On x32 platform it causes data loss in the: - file_wrapper::truncate - shared_memory_object::truncate Regards. Dima -- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731

On Jul 11, 2011, at 9:49 AM, Dmytro Ovdiienko wrote:
Hi,
boost::interprocess::detail::*truncate_file* accepts *size_t* instead of * offset_t*. On x32 platform it causes data loss in the: - file_wrapper::truncate - shared_memory_object::truncate
Regards.
Dima
Dima -- Nice catch. You should file a Trac ticket at: http://svn.boost.org -- Marshall

Hi Marshall, I cannot create ticket, because: *Submission rejected as potential spam (Akismet says content is spam) * On 11 July 2011 20:07, Marshall Clow <mclow.lists@gmail.com> wrote:
On Jul 11, 2011, at 9:49 AM, Dmytro Ovdiienko wrote:
offset_t*. On x32 platform it causes data loss in the: - file_wrapper::truncate - shared_memory_object::truncate
Regards.
Dima
Hi,
boost::interprocess::detail::*truncate_file* accepts *size_t* instead of
Dima --
Nice catch. You should file a Trac ticket at: http://svn.boost.org
-- Marshall
-- Dmytro Ovdiienko e-mail: dmitriy.ovdienko@gmail.com skype: dmitriy.ovdienko@gmail.com mobile: +38050-1909731
participants (3)
-
Dmytro Ovdiienko
-
Ion Gaztañaga
-
Marshall Clow