Mailinglist Archive: opensuse-commit (1139 mails)

< Previous Next >
commit lvm2
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Mon, 08 Jan 2007 17:50:48 +0100
  • Message-id: <20070108165048.716A867817A@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package lvm2
checked in at Mon Jan 8 17:50:48 CET 2007.

--------
--- lvm2/lvm2.changes 2006-12-18 14:00:11.000000000 +0100
+++ /mounts/work_src_done/STABLE/lvm2/lvm2.changes 2007-01-08 16:20:36.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Jan 8 16:15:23 CET 2007 - fehr@xxxxxxx
+
+- fix buggy pointer arithmetic (#232117)
+
+-------------------------------------------------------------------

New:
----
fix_pointer_arithmetic.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lvm2.spec ++++++
--- /var/tmp/diff_new_pack.FLc780/_old 2007-01-08 17:48:39.000000000 +0100
+++ /var/tmp/diff_new_pack.FLc780/_new 2007-01-08 17:48:39.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package lvm2 (Version 2.02.17)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 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.
#
@@ -21,13 +21,14 @@
%endif
Autoreqprov: on
Version: 2.02.17
-Release: 1
+Release: 5
Summary: LVM2 Tools
Source: LVM2.%{version}.tar.bz2
Source1: lvm.conf
Source2: boot.lvm
Source3: sysconfig.lvm
Patch: improve_probing.diff
+Patch1: fix_pointer_arithmetic.diff
Patch2: no-inc-audit.diff
Patch3: no_buildroot_shared.diff
Patch4: sys_mount_instead_linux_fs.diff
@@ -44,6 +45,7 @@
%prep
%setup -n LVM2.%{version}
%patch
+%patch1
%patch2
%patch3
%patch4
@@ -176,6 +178,8 @@
%{_mandir}/man8/vgsplit.8.gz

%changelog -n lvm2
+* Mon Jan 08 2007 - fehr@xxxxxxx
+- fix buggy pointer arithmetic (#232117)
* Mon Dec 18 2006 - fehr@xxxxxxx
- update to new version 2.02.17
Add missing pvremove error message when device doesn't exist.


++++++ fix_pointer_arithmetic.diff ++++++
--- lib/device/device.c
+++ lib/device/device.c 2007/01/08 15:11:19
@@ -72,7 +72,7 @@
/* Check for msdos partition table */
part_magic = buf + PART_MAGIC_OFFSET/sizeof(buf[0]);
if ((*part_magic == xlate16(PART_MAGIC))) {
- part = (struct partition *) (buf + PART_OFFSET);
+ part = (struct partition *) (((unsigned char*)buf) + PART_OFFSET);
for (p = 0; p < 4; p++, part++) {
/* Table is invalid if boot indicator not 0 or 0x80 */
if ((part->boot_ind & 0x7f)) {



++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages