summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.txt2
-rw-r--r--buffers.c11
-rw-r--r--main.c2
-rw-r--r--mkrelease.sh14
4 files changed, 20 insertions, 9 deletions
diff --git a/README.txt b/README.txt
index ff0f613..83e1c94 100644
--- a/README.txt
+++ b/README.txt
@@ -22,6 +22,8 @@ Thomas Dettbarn, 30-Dec-2010
color themes were fixed
0.67: a "base address" functionality was added, which makes it easier to work
with memory dumps.
+0.68: slight bug fix as suggested by christoph: under some circumstances, the
+ opening of a file could segfault.
---------------------------------------------------------[ 1. Getting started ]-
diff --git a/buffers.c b/buffers.c
index 5f196ea..f19d885 100644
--- a/buffers.c
+++ b/buffers.c
@@ -13,11 +13,20 @@
//
tUInt32 openbuf(tBuffer* hBuf,tUInt8 bufnum,char* filename)
{
+ unsigned int filenamelen=0;
+ if (filename == NULL)
+ return RETNOK;
+
+ filenamelen=strlen(filename);
+ if (filenamelen>510)
+ filenamelen=510;
+
hBuf->changesnum=0;
hBuf->valid=0;
hBuf->fresh=1;
hBuf->file=fopen(filename,"rb");
- memcpy(hBuf->filename,filename,512);
+ memcpy(hBuf->filename,filename,filenamelen+1);
+
hBuf->filename[511]=0;
if (hBuf->file)
{
diff --git a/main.c b/main.c
index cb2964e..e6f014c 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,6 @@
#define MAJORVERSION 0
#define MINORVERSION 6
-#define REVISION 7
+#define REVISION 8
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
diff --git a/mkrelease.sh b/mkrelease.sh
index d6fc4bc..d751b67 100644
--- a/mkrelease.sh
+++ b/mkrelease.sh
@@ -1,4 +1,4 @@
-mkdir dhex_0.67
+mkdir dhex_0.68
for I in `echo "
Makefile
buffers.c
@@ -37,11 +37,11 @@ dhex_markers.5
dhex_searchlog.5
mkrelease.sh" | sort -f`
do
- cp $I dhex_0.67/
+ cp $I dhex_0.68/
done
-( cd dhex_0.67/ && make && ./dhex -v && make clean && cd .. && \
-tar cvfz dhex_0.67.tar.gz dhex_0.67 )
-cp dhex_0.67.tar.gz dhex_latest.tar.gz
-md5 dhex_0.67.tar.gz
-md5 dhex_latest.tar.gz
+( cd dhex_0.68/ && make && ./dhex -v && make clean && cd .. && \
+tar cvfz dhex_0.68.tar.gz dhex_0.68 )
+cp dhex_0.68.tar.gz dhex_latest.tar.gz
+md5sum dhex_0.68.tar.gz
+md5sum dhex_latest.tar.gz
inux.8?id=57b40652d95c91a520750924b3eb2919a7713133&follow=1'>* Lintian fixesJonathan McCrohan2-4/+7 - spelling-error-in-manpage 2012-03-08Import upstream version 0.11.0~svn1180Jonathan McCrohan19-2871/+3952 2011-12-27Import upstream version 0.11.0~svn1165Jonathan McCrohan6-166/+495 2011-12-25Import upstream version 0.11.0~svn1164Jonathan McCrohan11-162/+315 2011-12-25Update libmysqlclient-dev virtual package in build-depends.Jonathan McCrohan1-1/+1 Thanks to Clint Byrum <clint@ubuntu.com> for the patch. 2011-08-31Import upstream version 0.11.0~svn1159Jonathan McCrohan4-5/+5 2011-08-30update debian/changelogReinhard Tartler1-1/+4 2011-08-28* New upstream snapshotJonathan McCrohan2-4/+11 * Make lcd4linux linux specific (requested by kFreeBSD team) * Add optional build targets build-indep and build-dep (thanks to lintian for catching this) 2011-08-26Import upstream version 0.11.0~svn1158Reinhard Tartler34-1743/+4490 2011-08-20normalize with wrap-and-sort(1)Reinhard Tartler2-17/+20 2011-08-20Make lcd4linux linux specificReinhard Tartler1-2/+1 on request of freebsd porters: http://permalink.gmane.org/gmane.linux.debian.devel.general/164670 2011-04-29add sqlite3-dev to build dependssiretart@tauware.de2-2/+4 2011-04-29mention new co-maintainersiretart@tauware.de1-0/+1 2011-04-29add libdbus-1-dev to build dependssiretart@tauware.de2-1/+3 2011-04-29normalize fields with wrap-and-sort(1)siretart@tauware.de2-18/+20 2011-04-29fix order of calling dh_autoreconf_cleansiretart@tauware.de1-1/+1 avoids leftover debhelper log file 2011-04-29Add Uploader details to Debian PackageJonathan McCrohan1-0/+1 2011-04-27Bug fix: "script lcd4linux/init.d/lcd4linux missing dependency onReinhard Tartler2-1/+5 $syslog", thanks to Petter Reinholdtsen (Closes: #582825). 2011-04-27No longer build the mpd module. Closes: #578226Reinhard Tartler1-0/+1 2011-04-27No longer compile against Python. Python 2.6 now links against libssl,Reinhard Tartler2-2/+3 which is in conflicts with the package license GPL.