Hello community, here is the log from the commit of package libebml checked in at Sat Apr 1 00:03:47 CEST 2006. -------- --- libebml/libebml.changes 2006-01-25 21:37:26.000000000 +0100 +++ libebml/libebml.changes 2006-03-31 18:12:49.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Mar 31 18:12:02 CEST 2006 - seife@suse.de + +- update to version 0.7.7 bugfix release that fixes pointer + aliasing issues + +------------------------------------------------------------------- Old: ---- libebml-0.7.6.tar.bz2 New: ---- libebml-0.7.7.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libebml.spec ++++++ --- /var/tmp/diff_new_pack.ucC5dr/_old 2006-04-01 00:03:05.000000000 +0200 +++ /var/tmp/diff_new_pack.ucC5dr/_new 2006-04-01 00:03:05.000000000 +0200 @@ -1,11 +1,11 @@ # -# spec file for package libebml (Version 0.7.6) +# spec file for package libebml (Version 0.7.7) # -# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://bugs.opensuse.org +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild @@ -13,21 +13,21 @@ Name: libebml BuildRequires: gcc-c++ URL: http://sourceforge.net/projects/ebml -Version: 0.7.6 +Version: 0.7.7 Release: 1 -Summary: libary to parse EBML files. +Summary: Libary to Parse EBML Files License: LGPL Group: Development/Libraries/Other Source: %{name}-%{version}.tar.bz2 Patch1: makefile.diff # Patch2: libebml-gcc4.diff -Summary: libary to parse EBML files. +Summary: Libary to Parse EBML Files BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: /usr %description libebml is a C++ library to parse EBML files. See the EBML RFV at -http://www.matroska.org/technical/specs/rfc/ +http://www.matroska.org/technical/specs/rfc/. @@ -70,6 +70,9 @@ /usr/include/ebml %changelog -n libebml +* Fri Mar 31 2006 - seife@suse.de +- update to version 0.7.7 bugfix release that fixes pointer + aliasing issues * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Mon Nov 21 2005 - seife@suse.de ++++++ libebml-0.7.6.tar.bz2 -> libebml-0.7.7.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/ChangeLog new/libebml-0.7.7/ChangeLog --- old/libebml-0.7.6/ChangeLog 2005-10-18 19:59:59.000000000 +0200 +++ new/libebml-0.7.7/ChangeLog 2006-03-31 14:33:02.000000000 +0200 @@ -1,3 +1,24 @@ +2006-03-30 19:33 mosu + + * trunk/libebml/src/EbmlFloat.cpp: Avoid pointer aliasing issues. + +2006-03-30 19:05 mosu + + * trunk/libebml/make/linux/Makefile: Small improvements like + creating the directory first and avoid failing if the symlink + exists already. + +2006-01-25 00:59 robux4 + + * trunk/libebml/ebml/EbmlConfig.h: add support for Borland C++ + Builder 2006 preview + +2005-10-18 17:59 mosu + + * trunk/libebml/ChangeLog, trunk/libebml/debian/changelog: Changed + the version in the Debian control file & automatic ChangeLog + update. + 2005-10-15 16:00 robux4 * trunk/libebml/ebml/EbmlVersion.h: libebml: the next version will diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/debian/changelog new/libebml-0.7.7/debian/changelog --- old/libebml-0.7.6/debian/changelog 2005-10-18 19:59:59.000000000 +0200 +++ new/libebml-0.7.7/debian/changelog 2006-03-31 14:33:02.000000000 +0200 @@ -1,3 +1,9 @@ +libebml (0.7.7-1) unstable; urgency=low + + * New version. + + -- Moritz Bunkus <moritz@bunkus.org> Fri, 31 Mar 2006 14:28:30 +0200 + libebml (0.7.6-1) unstable; urgency=low * New version. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/ebml/EbmlConfig.h new/libebml-0.7.7/ebml/EbmlConfig.h --- old/libebml-0.7.6/ebml/EbmlConfig.h 2005-05-06 13:43:38.000000000 +0200 +++ new/libebml-0.7.7/ebml/EbmlConfig.h 2006-01-25 01:59:45.000000000 +0100 @@ -28,7 +28,7 @@ /*! \file - \version \$Id: EbmlConfig.h 1155 2005-05-06 11:43:38Z robux4 $ + \version \$Id: EbmlConfig.h 1241 2006-01-25 00:59:45Z robux4 $ \author Steve Lhomme <robux4 @ users.sf.net> \author Moritz Bunkus <moritz @ bunkus.org> */ @@ -102,4 +102,9 @@ #define EBML_PRETTYLONGINT(c) (c) #endif // __GNUC__ +#if __BORLANDC__ >= 0x0581 //Borland C++ Builder 2006 preview + #include <stdlib.h> //malloc(), free() + #include <memory.h> //memcpy() +#endif //__BORLANDC__ + #endif // LIBEBML_CONFIG_H diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/ebml/EbmlVersion.h new/libebml-0.7.7/ebml/EbmlVersion.h --- old/libebml-0.7.6/ebml/EbmlVersion.h 2005-10-15 18:00:13.000000000 +0200 +++ new/libebml-0.7.7/ebml/EbmlVersion.h 2006-03-31 14:33:02.000000000 +0200 @@ -30,7 +30,7 @@ /*! \file - \version \$Id: EbmlVersion.h 1233 2005-10-15 16:00:13Z robux4 $ + \version \$Id: EbmlVersion.h 1245 2006-03-31 12:33:02Z mosu $ \author Steve Lhomme <robux4 @ users.sf.net> */ #ifndef LIBEBML_VERSION_H @@ -42,9 +42,9 @@ START_LIBEBML_NAMESPACE -#define LIBEBML_VERSION 0x000706 +#define LIBEBML_VERSION 0x000707 -static const std::string EbmlCodeVersion = "0.7.6"; +static const std::string EbmlCodeVersion = "0.7.7"; static const std::string EbmlCodeDate = __TIMESTAMP__; /*! diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/make/linux/Makefile new/libebml-0.7.7/make/linux/Makefile --- old/libebml-0.7.6/make/linux/Makefile 2005-04-19 08:56:06.000000000 +0200 +++ new/libebml-0.7.7/make/linux/Makefile 2006-03-30 21:05:11.000000000 +0200 @@ -95,6 +95,7 @@ $(LIBRARY_SO): $(objects_so) $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so) + rm -f $(LIBRARY_SO) ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO) clean: @@ -138,6 +139,7 @@ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir) install_sharedlib: $(LIBRARY_SO) + $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir) $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir) ln -s $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO) diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/libebml-0.7.6/src/EbmlFloat.cpp new/libebml-0.7.7/src/EbmlFloat.cpp --- old/libebml-0.7.6/src/EbmlFloat.cpp 2005-03-19 11:15:20.000000000 +0100 +++ new/libebml-0.7.7/src/EbmlFloat.cpp 2006-03-30 21:33:22.000000000 +0200 @@ -30,7 +30,7 @@ /*! \file - \version \$Id: EbmlFloat.cpp 1101 2005-03-19 10:15:20Z mosu $ + \version \$Id: EbmlFloat.cpp 1243 2006-03-30 19:33:22Z mosu $ \author Steve Lhomme <robux4 @ users.sf.net> */ @@ -70,11 +70,15 @@ if (Size == 4) { float val = Value; - big_int32 TmpToWrite(*((int32 *) &val)); + int Tmp; + memcpy(&Tmp, &val, 4); + big_int32 TmpToWrite(Tmp); output.writeFully(&TmpToWrite.endian(), Size); } else if (Size == 8) { double val = Value; - big_int64 TmpToWrite(*((int64 *) &val)); + int64 Tmp; + memcpy(&Tmp, &val, 8); + big_int64 TmpToWrite(Tmp); output.writeFully(&TmpToWrite.endian(), Size); } @@ -103,13 +107,17 @@ big_int32 TmpRead; TmpRead.Eval(Buffer); int32 tmpp = int32(TmpRead); - Value = *((float *) &tmpp); + float val; + memcpy(&val, &tmpp, 4); + Value = val; bValueIsSet = true; } else if (Size == 8) { big_int64 TmpRead; TmpRead.Eval(Buffer); int64 tmpp = int64(TmpRead); - Value = *((double *) &tmpp); + double val; + memcpy(&val, &tmpp, 8); + Value = val; bValueIsSet = true; } } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun...
participants (1)
-
root@suse.de