Re: [Boost-bugs] [Boost C++ Libraries] #4660: Error read binary archive, created by old boost version

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4660: Error read binary archive, created by old boost version
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-21 05:25:01


#4660: Error read binary archive, created by old boost version
---------------------------------------+------------------------------------
  Reporter: serge-voropaev@… | Owner: ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.44.0 | Severity: Showstopper
Resolution: | Keywords:
---------------------------------------+------------------------------------

Comment (by Sergey Voropaev <serge-voropaev@…>):

 Replying to [comment:3 ramey]:
> ouch - my mistake. This last documentation change didn't make it into
 the release branch.[[BR]]
> .........[[BR]]
> Let me know if this addresses the situation.
>
> Robert Ramey
 I did not find any fix*.cpp in boost_1_44_0\libs\serialization\

 But I think it is not problem with "6" version. I have native binary
 archives 1.34.1 and 1.43.0 And all was good. But version 1.44
 '''change''' binary format of version information. Format before 1.44.0
 was unsigned char. Format of 1.44 is unsigned short. So 1.44.0 read
 invalid value. For example it read 0x0404 as library version from file,
 which was created by 1.34.1, but should read 0x04.
 Please see files, which I sent as attachements, in any hex editor.

 You can see library version information below as '''bold''' value[[BR]]

 1.34.1 first 32 bytes of file:[[BR]]
 16 00 00 00 73 65 72 69 61 6c 69 7a 61 74 69 6f 6e 3a 3a 61 72 63 68 69 76
 65''' 04''' 04 04 04 08 01
 1.43.0 first 32 bytes of file:[[BR]]
 16 00 00 00 73 65 72 69 61 6c 69 7a 61 74 69 6f 6e 3a 3a 61 72 63 68 69 76
 65 '''07''' 04 04 04 08 01
 1.44.0 first 32 bytes of file:[[BR]]
 16 00 00 00 73 65 72 69 61 6c 69 7a 61 74 69 6f 6e 3a 3a 61 72 63 68 69 76
 65 '''07 00''' 04 04 04 08

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4660#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC