Package: berusky2
Version: 0.10-8
Severity: important
Tags: patch

Dear Maintainer,

Certain animations (such as pushing a block over a ledge) cause berusky2
to crash. This has been fixed upstream in commit 97ed81c (the bug is due
to trying to store a pointer in an integer type too small to store a
pointer).

For your convenience, here is a patch from that commit (created with
`git format-patch 97ed^..97ed'):
From 97ed81cc7fd48c4955d15efd5a341d6af4e96759 Mon Sep 17 00:00:00 2001
From: Martin Stransky <stran...@anakreon.cz>
Date: Sun, 3 Jan 2016 15:28:37 +0100
Subject: [PATCH] Fixed crashes in animation module

---
 src/komat/Berusky3d.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/komat/Berusky3d.h b/src/komat/Berusky3d.h
index 2b8bcc4..aef18c7 100644
--- a/src/komat/Berusky3d.h
+++ b/src/komat/Berusky3d.h
@@ -181,8 +181,8 @@ typedef struct _GLOBALNI_KONT_ANIMACE
 
   int *p_flag;                  // kofoluv flag
   void *p_param;                // kofolova end funkce
-  int param;
-  int param2;
+  size_ptr param;
+  size_ptr param2;
   END_FUNKCE p_endfce;
   int konec;
 
-- 
2.24.0

You can import the patch into quilt with

  quilt import Fixed-crashes-in-animation-module.patch

In addition, upstream commit df8d2a4 claims to fix crashes in the
particle engine (I haven't noticed these crashes yet).

Also, since upstream hasn't made a release in a while, maybe it would be
a good idea to update the Debian package against the latest upstream
commit.


Thanks,
Asher


-- 
: The following (relative to AutoSplit 1.03) attempts to please everyone
: and perhaps pleases no one:

I think that's way cool.
                -- Larry Wall in <199709292015.naa09...@wall.org>


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-3-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages berusky2 depends on:
ii  berusky2-data           0.9-2
ii  libalut0                1.1.0-6
ii  libc6                   2.29-3
ii  libgcc1                 1:9.2.1-19
ii  libgl1                  1.1.0-1+b1
ii  libglu1-mesa [libglu1]  9.0.0-2.1+b3
ii  libopenal1              1:1.19.1-1+b1
ii  libsdl-image1.2         1.2.12-12
ii  libsdl1.2debian         1.2.15+dfsg2-5
ii  libstdc++6              9.2.1-19
ii  libvorbisfile3          1.3.6-2
ii  libx11-6                2:1.6.8-1
ii  zlib1g                  1:1.2.11.dfsg-1+b1

berusky2 recommends no packages.

berusky2 suggests no packages.

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to