[tigervnc/f12/master] Fix memory leak in JPEG decoder (#624317).
Adam Tkac
atkac at fedoraproject.org
Wed Aug 25 14:56:38 UTC 2010
commit 370532f2b2c88291b7d1b152a1312fc366506ef6
Author: Adam Tkac <atkac at redhat.com>
Date: Wed Aug 25 16:56:23 2010 +0200
Fix memory leak in JPEG decoder (#624317).
Signed-off-by: Adam Tkac <atkac at redhat.com>
tigervnc.spec | 7 ++++++-
tigervnc10-rh624317.patch | 12 ++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/tigervnc.spec b/tigervnc.spec
index fbd07b3..bd8f1d0 100644
--- a/tigervnc.spec
+++ b/tigervnc.spec
@@ -1,6 +1,6 @@
Name: tigervnc
Version: 1.0.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A TigerVNC remote display system
Group: User Interface/Desktops
@@ -55,6 +55,7 @@ Patch27: tigervnc11-r4024.patch
Patch28: tigervnc11-r4025.patch
Patch29: tigervnc10-rh598255.patch
Patch30: tigervnc10-rh624866.patch
+Patch31: tigervnc10-rh624317.patch
%description
Virtual Network Computing (VNC) is a remote display system which
@@ -124,6 +125,7 @@ popd
%patch28 -p1 -b .r4025
%patch29 -p0 -b .rh598255
%patch30 -p0 -b .rh624866
+%patch31 -p1 -b .rh624317
cp -r /usr/share/xorg-x11-server-source/* unix/xserver
pushd unix/xserver
@@ -273,6 +275,9 @@ fi
%endif
%changelog
+* Wed Aug 25 2010 Adam Tkac <atkac redhat com> 1.0.1-3
+- fix memory leak in JPEG decoder (#624317)
+
* Wed Aug 18 2010 Adam Tkac <atkac redhat com> 1.0.1-2
- vncviewer: don't crash during pixel format change (#598255)
- vncviewer: don't call setColourMapEntries when pixel format has been changed
diff --git a/tigervnc10-rh624317.patch b/tigervnc10-rh624317.patch
new file mode 100644
index 0000000..e42b23c
--- /dev/null
+++ b/tigervnc10-rh624317.patch
@@ -0,0 +1,12 @@
+diff -up tigervnc-1.0.1/common/rfb/tightDecode.h.rh624317 tigervnc-1.0.1/common/rfb/tightDecode.h
+--- tigervnc-1.0.1/common/rfb/tightDecode.h.rh624317 2010-08-25 16:54:29.889347357 +0200
++++ tigervnc-1.0.1/common/rfb/tightDecode.h 2010-08-25 16:54:45.599343567 +0200
+@@ -315,6 +315,8 @@ DecompressJpegRect(const Rect& r, rdr::I
+ }
+ }
+
++ delete [] rowPointer;
++
+ if (cinfo.out_color_space == JCS_RGB)
+ myFormat.bufferFromRGB((rdr::U8*)buf, dstBuf, w * h);
+
More information about the scm-commits
mailing list