]> cvs.zerfleddert.de Git - proxmark3-svn/log
proxmark3-svn
7 years agoMerge pull request #209 from micolous/14a-random-nonce
pwpiwi [Sat, 28 Jan 2017 16:11:13 +0000 (17:11 +0100)]
Merge pull request #209 from micolous/14a-random-nonce

Adds random nonce (r) option to `hf mf sim`.

7 years agohf mf sim: Multiple fixes from review of PR #209. 209/head
Michael Farrell [Thu, 26 Jan 2017 09:27:08 +0000 (20:27 +1100)]
hf mf sim: Multiple fixes from review of PR #209.

- Don't increment the nonce when random mode is disabled (this breaks the
  standard attack).

- Don't attempt the standard attack when random mode is enabled (there's no
  point as it won't work, per comments from @pwpiwi).

- Attempt the moebius attack if the standard attack fails.

7 years agoMerge pull request #208 from marshmellow42/master
pwpiwi [Thu, 26 Jan 2017 08:10:38 +0000 (09:10 +0100)]
Merge pull request #208 from marshmellow42/master

bug fixes - LF rawdemod am and ST

7 years agoAdds random nonce (r) option to `hf mf sim`.
Michael Farrell [Thu, 26 Jan 2017 07:16:10 +0000 (18:16 +1100)]
Adds random nonce (r) option to `hf mf sim`.

This makes the PM3 generate pseudo-random nonces rather than sequential
nonces, to make it act a bit more like a "real" MFC card.  A reader would
otherwise be able to detect the PM3 probing based on the predictable nonces
and throw different authentication challenges (or refuse to authenticate at
all).

The code includes an implementation of a rand-like function (prand), similar
to the one from libc, which is seeded automatically based on the time it
takes between the PM3 starting up and the first call to the RNG.

This isn't cryptographically random, but should be "good enough" to be able
to evade basic detection.

7 years agobug fixes - LF rawdemod am and ST 208/head
marshmellow42 [Fri, 20 Jan 2017 05:55:40 +0000 (00:55 -0500)]
bug fixes - LF rawdemod am and ST

rawdemod parameter length test too short for help text
amp option should amp prior to ST check
ST check adjusted to make room for rf/32 clock instead of rf/64 (so will
have extra room if clock is higher than 32)
ST check improved to better account for low drift

7 years agoMerge pull request #202 from marshmellow42/master
Iceman [Mon, 19 Dec 2016 15:09:58 +0000 (16:09 +0100)]
Merge pull request #202 from marshmellow42/master

add hitag2 uid read and fixes for iclass write

7 years agofixed lf antenna left on bug && some iclass ... 202/head
marshmellow42 [Mon, 19 Dec 2016 14:45:23 +0000 (09:45 -0500)]
fixed lf antenna left on bug && some iclass ...

output cleanup by @iceman1001

7 years agoa few bug fixes with adding hitag detection to...
marshmellow42 [Fri, 16 Dec 2016 19:04:39 +0000 (14:04 -0500)]
a few bug fixes with adding hitag detection to...

`lf search`

7 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Tue, 29 Nov 2016 20:09:27 +0000 (15:09 -0500)]
Merge remote-tracking branch 'upstream/master'

7 years agofix iclass write
marshmellow42 [Tue, 29 Nov 2016 19:59:14 +0000 (14:59 -0500)]
fix iclass write

thanks to prof_abrasive && go_tus

8 years agoMerge pull request #119 from marshmellow42/pm3+reveng
Iceman [Sat, 8 Oct 2016 17:18:14 +0000 (19:18 +0200)]
Merge pull request #119 from marshmellow42/pm3+reveng

add reveng 1.30 source to PM3 for CRC calculations & searches

8 years agoFixed all "misleading-indentation" warnings (fixes #187).
ikarus [Mon, 26 Sep 2016 19:15:49 +0000 (21:15 +0200)]
Fixed all "misleading-indentation" warnings (fixes #187).

8 years agoRevert "Do not treat gcc's "misleading-indentation" warning as error."
ikarus [Mon, 26 Sep 2016 18:39:31 +0000 (20:39 +0200)]
Revert "Do not treat gcc's "misleading-indentation" warning as error."

This reverts commit fd4f21b766a715303f0b1436c9970f5965e644dc.

8 years agoDo not treat gcc's "misleading-indentation" warning as error (fixes #187).
ikarus [Mon, 26 Sep 2016 17:21:01 +0000 (19:21 +0200)]
Do not treat gcc's "misleading-indentation" warning as error (fixes #187).

8 years agoMerge pull request #197 from menshiyun/test-pr
Iceman [Sun, 25 Sep 2016 06:46:59 +0000 (08:46 +0200)]
Merge pull request #197 from menshiyun/test-pr

minor fix in client/makefile
extra option to LDLIBS is not needed for mingw env as of now. Might be in the future.

8 years agofix client/Makefile 197/head
menshiyun [Sun, 25 Sep 2016 06:32:06 +0000 (14:32 +0800)]
fix client/Makefile

8 years agofix client/Makefile
menshiyun [Sun, 25 Sep 2016 06:26:11 +0000 (14:26 +0800)]
fix client/Makefile

8 years agotest-pr
menshiyun [Sat, 24 Sep 2016 04:56:08 +0000 (12:56 +0800)]
test-pr

8 years agoMerge pull request #196 from k02a/patch-5
Iceman [Fri, 23 Sep 2016 11:04:07 +0000 (13:04 +0200)]
Merge pull request #196 from k02a/patch-5

Code cleanup,

8 years agoCode cleanup 196/head
Johnny Bengtsson [Wed, 14 Sep 2016 11:27:24 +0000 (13:27 +0200)]
Code cleanup

Some variable type changes.

8 years agoMerge pull request #195 from k02a/patch-4
Iceman [Tue, 13 Sep 2016 12:25:02 +0000 (14:25 +0200)]
Merge pull request #195 from k02a/patch-4

Warning removal fix

8 years agoWarning removal fix 195/head
Johnny Bengtsson [Tue, 13 Sep 2016 10:21:46 +0000 (12:21 +0200)]
Warning removal fix

Minor fix of data type corrections.

gcc -std=c99 -I. -I../include -I../common -I../zlib -I/opt/local/include -I../liblua -Wall  -g -O4 -DHAVE_GUI -DZ_SOLO -DZ_PREFIX -DNO_GZIP -DZLIB_PM3_TUNED  -c -o obj/fpga_compress.o fpga_compress.c
fpga_compress.c: I funktion "zlib_compress":
fpga_compress.c:90:20: varning: format "%lu" förväntar sig argument av typen "long unsigned int", men argument 3 har typen "int" [-Wformat=]
    fprintf(stderr, "Input files too big (total > %lu bytes). These are probably not PM3 FPGA config files.\n", num_infiles*FPGA_CONF
                    ^
fpga_compress.c:142:18: varning: format "%lu" förväntar sig argument av typen "long unsigned int", men argument 3 har typen "uint32_t {även unsigned int}" [-Wformat=]
  fprintf(stderr, "compressed %lu input bytes to %lu output bytes\n", i, compressed_fpga_stream.total_out);

8 years agoUpdate README.txt
Iceman [Mon, 12 Sep 2016 21:34:42 +0000 (23:34 +0200)]
Update README.txt

Added some new stores

8 years agoMerge pull request #193 from k02a/patch-2
Iceman [Mon, 12 Sep 2016 16:06:24 +0000 (18:06 +0200)]
Merge pull request #193 from k02a/patch-2

Better Linux compilation compability

8 years agoMerge pull request #192 from k02a/patch-1
Iceman [Mon, 12 Sep 2016 16:04:14 +0000 (18:04 +0200)]
Merge pull request #192 from k02a/patch-1

Patching Lua compilation error

8 years agoBetter Linux compilation compability 193/head
Johnny Bengtsson [Mon, 12 Sep 2016 14:03:46 +0000 (16:03 +0200)]
Better Linux compilation compability

Addition of the termcap and ncurses libraries fixes the compilation issue on Slackware Linux 14.2.

/usr/lib64/gcc/x86_64-slackware-linux/5.4.0/../../../../lib64/libreadline.so: undefined reference to `PC'
collect2: fel: ld returnerade avslutningsstatus 1
Makefile:132: receptet för målet "proxmark3" misslyckades
make[1]: *** [proxmark3] Fel 1
make[1]: Lämnar katalogen "/home/github/proxmark3/proxmark3/client"
Makefile:12: receptet för målet "client/all" misslyckades
make: *** [client/all] Fel 2
make: Lämnar katalogen "/home/github/proxmark3/proxmark3"

8 years agoBetter Linux compilation compability 192/head
Johnny Bengtsson [Mon, 12 Sep 2016 13:55:44 +0000 (15:55 +0200)]
Better Linux compilation compability

8 years agoMerge pull request #7 from marshmellow42/hitag2_tests
marshmellow42 [Thu, 25 Aug 2016 17:41:11 +0000 (13:41 -0400)]
Merge pull request #7 from marshmellow42/hitag2_tests

attempt hitag2 uid read for lf search

8 years agoMerge pull request #184 from koalazak/patch-1
Iceman [Fri, 12 Aug 2016 11:55:39 +0000 (13:55 +0200)]
Merge pull request #184 from koalazak/patch-1

Add details to compile using brew in Mac OS X

8 years agoMerge pull request #185 from marshmellow42/master
Iceman [Fri, 12 Aug 2016 11:55:09 +0000 (13:55 +0200)]
Merge pull request #185 from marshmellow42/master

some lf fixes and hf mf sim attack mode add-ons

8 years agoattempt hitag2 uid read for lf search
marshmellow42 [Thu, 4 Aug 2016 17:51:37 +0000 (13:51 -0400)]
attempt hitag2 uid read for lf search

8 years agodisable extra attack - disable stats.txt 185/head
marshmellow42 [Thu, 28 Jul 2016 16:52:18 +0000 (12:52 -0400)]
disable extra attack - disable stats.txt

Moebius attack didn't yield any better results in my testing so
disabling it, but allowing it to be re-enabled at will.
also disabled the auto logging of all keys with uid delimited file
stats.txt - can be uncommented when needed

8 years agoAdd details to compile using brew in Mac OS X 184/head
Facu ZAK [Wed, 20 Jul 2016 00:17:38 +0000 (21:17 -0300)]
Add details to compile using brew in Mac OS X

8 years agocouple bug fixes - clean up
marshmellow42 [Wed, 29 Jun 2016 01:02:26 +0000 (21:02 -0400)]
couple bug fixes - clean up

8 years agohf mf sim code cleanup - update changelog
marshmellow42 [Mon, 27 Jun 2016 04:09:40 +0000 (00:09 -0400)]
hf mf sim code cleanup - update changelog

8 years agomf 1k sim reader attack cleanup
marshmellow42 [Sat, 25 Jun 2016 04:53:53 +0000 (00:53 -0400)]
mf 1k sim reader attack cleanup

add abort options - keyboard & button press.

8 years agoallow mf1k reader attack from file full of UIDs
marshmellow42 [Sat, 25 Jun 2016 03:43:53 +0000 (23:43 -0400)]
allow mf1k reader attack from file full of UIDs

also add UID to stats.txt collection.

8 years agofix bug in moebius nonce collection - now finishes
marshmellow42 [Fri, 24 Jun 2016 20:46:11 +0000 (16:46 -0400)]
fix bug in moebius nonce collection - now finishes

also cleaned up some comments
note previous update added the creation of a stats.txt file to generate
statistics of the differences between std mfkey32 and the moebius
version.

8 years agoupdate hf mf sim x attack mode - start 10byte uid..
marshmellow42 [Fri, 24 Jun 2016 05:31:27 +0000 (01:31 -0400)]
update hf mf sim x attack mode - start 10byte uid..

..support  (some from @iceman1001)
(sim reader attack currently testing std mfkey32 vs mfkey32_moebius
version...)  possibly will remove one later.

8 years agohf mf sim x reader attack add-ons
marshmellow42 [Wed, 22 Jun 2016 15:26:11 +0000 (11:26 -0400)]
hf mf sim x reader attack add-ons

forgot to include the mfkey32 attack

8 years agoimprove hf mf sim x reader attack
marshmellow42 [Wed, 22 Jun 2016 15:03:37 +0000 (11:03 -0400)]
improve hf mf sim x reader attack

can now directly extract multiple keys for multiple sectors

8 years agofix askAmp
marshmellow42 [Mon, 20 Jun 2016 04:42:03 +0000 (00:42 -0400)]
fix askAmp

again... must have been something i missed before.  this function wasn't
complete.

8 years agofix bug in viking clone/sim
marshmellow42 [Mon, 20 Jun 2016 04:28:26 +0000 (00:28 -0400)]
fix bug in viking clone/sim

from @iceman1001

8 years agoFix the AskEdgeDetect cleaning tool
marshmellow42 [Mon, 20 Jun 2016 03:44:54 +0000 (23:44 -0400)]
Fix the AskEdgeDetect cleaning tool

somehow it got broken.
(maybe i had an incomplete pull request once upon a time)

8 years agoMerge pull request #181 from raburton/tune
pwpiwi [Wed, 8 Jun 2016 14:20:11 +0000 (16:20 +0200)]
Merge pull request #181 from raburton/tune

add l/h option to hw tune and optimize order of tuning

8 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Mon, 6 Jun 2016 02:20:36 +0000 (22:20 -0400)]
Merge remote-tracking branch 'upstream/master'

8 years agoadd l/h option to hw tune and optimize order of tuning 181/head
Richard Antony Burton [Mon, 30 May 2016 17:30:38 +0000 (18:30 +0100)]
add l/h option to hw tune and optimize order of tuning

8 years agoMerge pull request #175 from hiviah/master
Martin Holst Swende [Fri, 20 May 2016 11:24:40 +0000 (13:24 +0200)]
Merge pull request #175 from hiviah/master

Fix hitagS sources to compile on gcc 4.9.3

8 years agoMerge pull request #178 from dnet/cmdlf-unused-strlen
Martin Holst Swende [Fri, 20 May 2016 11:17:31 +0000 (13:17 +0200)]
Merge pull request #178 from dnet/cmdlf-unused-strlen

removed unused variable

8 years agoremoved unused variable 178/head
András Veres-Szentkirályi [Tue, 10 May 2016 08:33:30 +0000 (10:33 +0200)]
removed unused variable

8 years agoFix hitagS sources to compile on gcc 4.9.3 175/head
Ondrej Mikle [Sat, 23 Apr 2016 08:01:19 +0000 (10:01 +0200)]
Fix hitagS sources to compile on gcc 4.9.3

8 years agoMerge pull request #167 from spenneb/master
Martin Holst Swende [Tue, 5 Apr 2016 19:12:24 +0000 (21:12 +0200)]
Merge pull request #167 from spenneb/master

Experimental HitagS support

8 years agoChangelog modified 167/head
Ralf Spenneberg [Tue, 5 Apr 2016 06:52:53 +0000 (08:52 +0200)]
Changelog modified

8 years agoMerge pull request #168 from zhovner/master
Martin Holst Swende [Sun, 3 Apr 2016 19:55:54 +0000 (21:55 +0200)]
Merge pull request #168 from zhovner/master

mfkey64: Added optional decryption of communication using keystream

8 years agosimplify some code, add comments
marshmellow42 [Sat, 19 Mar 2016 04:09:58 +0000 (00:09 -0400)]
simplify some code, add comments

ABS simplification from Iceman1001

8 years agoremove binary files 168/head
Pavel Zhovner [Wed, 9 Mar 2016 00:52:54 +0000 (03:52 +0300)]
remove binary files

8 years agoOptional decryption of communication using keystream
Pavel Zhovner [Wed, 9 Mar 2016 00:32:39 +0000 (03:32 +0300)]
Optional decryption of communication using keystream

8 years agoOptional decryption of communication using keystream
Pavel Zhovner [Tue, 8 Mar 2016 23:41:20 +0000 (02:41 +0300)]
Optional decryption of communication using keystream

8 years agoadd ST to ask/manchester sim, finish presco...
marshmellow42 [Mon, 7 Mar 2016 06:01:40 +0000 (01:01 -0500)]
add ST to ask/manchester sim, finish presco...

...as it is currently understood - need to add base 12 printed ID to
demod output...
add Q5 option to pyramid
fix missing include I mistakenly removed in cmdlf

8 years agofix comment typo error
marshmellow42 [Sun, 6 Mar 2016 04:46:34 +0000 (23:46 -0500)]
fix comment typo error

8 years agoAdd @iceman1001 s presco and pyramid functions +
marshmellow42 [Sun, 6 Mar 2016 04:45:28 +0000 (23:45 -0500)]
Add @iceman1001 s presco and pyramid functions +

plus comment some includes.
fix indala error checking bugs
cmddata.h previously relied on several headers being included prior to
cmddata.h, now self contained.

8 years agoExperimental HitagS support
Ralf Spenneberg [Fri, 4 Mar 2016 16:28:05 +0000 (17:28 +0100)]
Experimental HitagS support

8 years agofix uint8 vs uint32 and use sprint_hex
marshmellow42 [Mon, 29 Feb 2016 23:17:51 +0000 (18:17 -0500)]
fix uint8 vs uint32 and use sprint_hex

thanks @iceman1001 for the suggestion.

8 years agofix ask/Biphase sim bug
marshmellow42 [Mon, 29 Feb 2016 23:05:47 +0000 (18:05 -0500)]
fix ask/Biphase sim bug

8 years agorefactor gProxII demod... add 0 spacer to ...
marshmellow42 [Mon, 29 Feb 2016 22:05:02 +0000 (17:05 -0500)]
refactor gProxII demod...  add 0 spacer to ...

... parity functions (remove, add)
make MAX_GRAPH_TRACE_LEN match with client side

8 years agosome minor lf fixes from @iceman1001
marshmellow42 [Sun, 21 Feb 2016 22:05:53 +0000 (17:05 -0500)]
some minor lf fixes from @iceman1001

8 years agoMerge pull request #166 from marshmellow42/master
Martin Holst Swende [Sun, 21 Feb 2016 16:41:58 +0000 (17:41 +0100)]
Merge pull request #166 from marshmellow42/master

Add LF ASK ST detect and demodulate...

8 years agofix clock detection when ST used 166/head
marshmellow42 [Sat, 20 Feb 2016 21:53:59 +0000 (16:53 -0500)]
fix clock detection when ST used

ST = sequence terminator
fixes t55xx auto detection of tags with ST used.

8 years agoremove errant 'void'
marshmellow42 [Sat, 20 Feb 2016 15:22:45 +0000 (10:22 -0500)]
remove errant 'void'

have to watch my copy and paste...

8 years agoMerge remote-tracking branch 'upstream/master'
marshmellow42 [Sat, 20 Feb 2016 15:10:10 +0000 (10:10 -0500)]
Merge remote-tracking branch 'upstream/master'

8 years agomove the clear buffer outside of potentially time..
marshmellow42 [Sat, 20 Feb 2016 15:07:44 +0000 (10:07 -0500)]
move the clear buffer outside of potentially time..

... sensitive routines
see http://www.proxmark.org/forum/viewtopic.php?id=2820

8 years agofix detection of lf t55x7 if xtd bits set but...
marshmellow42 [Fri, 19 Feb 2016 20:54:32 +0000 (15:54 -0500)]
fix detection of lf t55x7 if xtd bits set but...

...not used

8 years agofix wrong type in print bug
marshmellow42 [Fri, 19 Feb 2016 20:11:44 +0000 (15:11 -0500)]
fix wrong type in print bug

8 years agofinish LF ASK Sequence Terminator detection
marshmellow42 [Fri, 19 Feb 2016 20:09:51 +0000 (15:09 -0500)]
finish LF ASK Sequence Terminator detection

8 years agoMerge pull request #165 from wllm-rbnt/master
Martin Holst Swende [Wed, 17 Feb 2016 15:15:39 +0000 (16:15 +0100)]
Merge pull request #165 from wllm-rbnt/master

Typos

8 years agoTypos 165/head
William Robinet [Wed, 17 Feb 2016 14:44:18 +0000 (15:44 +0100)]
Typos

8 years agoupdate changelog
marshmellow42 [Wed, 17 Feb 2016 02:10:48 +0000 (21:10 -0500)]
update changelog

8 years agoAdd LF ASK Sequence Terminator detection...
marshmellow42 [Tue, 16 Feb 2016 17:49:30 +0000 (12:49 -0500)]
Add LF ASK Sequence Terminator detection...

...and demodulate data beginning after the first ST
also add some type casts in print calls.

8 years agoMerge pull request #164 from marshmellow42/master
Martin Holst Swende [Tue, 16 Feb 2016 14:39:52 +0000 (15:39 +0100)]
Merge pull request #164 from marshmellow42/master

fix issue #163, prevent two calls to getFromGraphBuf - fix char array pointer...

8 years agouse memcpy instead of re-assign pointer 164/head
marshmellow42 [Tue, 16 Feb 2016 14:38:37 +0000 (09:38 -0500)]
use memcpy instead of re-assign pointer

8 years agoclear char array with each call
marshmellow42 [Tue, 16 Feb 2016 03:36:51 +0000 (22:36 -0500)]
clear char array with each call

8 years agofix char* pointer not assigned
marshmellow42 [Tue, 16 Feb 2016 03:31:21 +0000 (22:31 -0500)]
fix char* pointer not assigned

fix

8 years agouse different fsk field clock detection routine ...
marshmellow42 [Tue, 16 Feb 2016 02:39:34 +0000 (21:39 -0500)]
use different fsk field clock detection routine ...

... to prevent double call to getFromGraphBuf()...
also adjust %hu to u and as there is a possible problem with %hu in
printf.

8 years agoMerge remote-tracking branch 'upstream/master' into pm3+reveng 119/head
marshmellow42 [Mon, 15 Feb 2016 19:13:49 +0000 (14:13 -0500)]
Merge remote-tracking branch 'upstream/master' into pm3+reveng

8 years agoMerge pull request #162 from marshmellow42/CoverityFixes
Martin Holst Swende [Mon, 15 Feb 2016 17:43:25 +0000 (18:43 +0100)]
Merge pull request #162 from marshmellow42/CoverityFixes

Coverity fixes - mainly from @iceman1001 s fork

8 years agoMerge pull request #160 from marshmellow42/master
Martin Holst Swende [Mon, 15 Feb 2016 17:39:42 +0000 (18:39 +0100)]
Merge pull request #160 from marshmellow42/master

lf viking and standalone bug fixes

8 years agoundo adjustments to cmdhf14a.c and cmdhfmf.c 162/head
marshmellow42 [Sun, 14 Feb 2016 23:37:09 +0000 (18:37 -0500)]
undo adjustments to cmdhf14a.c and cmdhfmf.c

as these will be adjusted with the magic command adjustments

8 years agoclear array before assigning
marshmellow42 [Sun, 14 Feb 2016 23:08:14 +0000 (18:08 -0500)]
clear array before assigning

8 years agoverify wait isn't null
marshmellow42 [Sun, 14 Feb 2016 22:41:16 +0000 (17:41 -0500)]
verify wait isn't null

8 years agoput back viking clone bug fix
marshmellow42 [Sun, 14 Feb 2016 22:00:20 +0000 (17:00 -0500)]
put back viking clone bug fix

forgot i added this on a different computer recently - forgot to merge
it in...

8 years agoremove redundant llx prix64 defines
marshmellow42 [Sun, 14 Feb 2016 19:43:19 +0000 (14:43 -0500)]
remove redundant llx prix64 defines

remove unused commented out #includes
coverity indicates compressed_fpga_stream.opaque needs to be initialized
to Z_NULL
fgetc returns int
define llu

8 years agoresource leak and malloc(x) cannot be negative
marshmellow42 [Sun, 14 Feb 2016 18:41:25 +0000 (13:41 -0500)]
resource leak and malloc(x) cannot be negative

thanks iceman1001

8 years agolf t55 bruteforce lots of resource leaks...
marshmellow42 [Sun, 14 Feb 2016 18:37:05 +0000 (13:37 -0500)]
lf t55 bruteforce lots of resource leaks...

plus strlen(Cmd) can never be less than 0
iceman1001 fixes...

8 years agoadditional memory leaks, overflow and unchecked ...
marshmellow42 [Sun, 14 Feb 2016 18:24:03 +0000 (13:24 -0500)]
additional memory leaks, overflow and unchecked ...

return values fixed

thanks to iceman1001

8 years agoFIX: Coverity, Out-of-bounds. In the loop, variable i, can...
marshmellow42 [Sun, 14 Feb 2016 17:36:55 +0000 (12:36 -0500)]
FIX: Coverity, Out-of-bounds. In the loop, variable i, can...

...be as much as 1051, overflowing the databuf with size 1024.

8 years agofix possible null if no file found
marshmellow42 [Sun, 14 Feb 2016 17:33:07 +0000 (12:33 -0500)]
fix possible null if no file found

also initialize filename variable so not null

found by iceman1001

8 years agofix keyNbr entry error checking
marshmellow42 [Sun, 14 Feb 2016 17:26:03 +0000 (12:26 -0500)]
fix keyNbr entry error checking

coverity scan by iceman1001 found.

8 years agoFIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …
marshmellow42 [Sun, 14 Feb 2016 17:13:22 +0000 (12:13 -0500)]
FIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …

…be negative. Not allowed in malloc...
from iceman1001

8 years agoFIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …
marshmellow42 [Sun, 14 Feb 2016 17:06:29 +0000 (12:06 -0500)]
FIX, Coverity, Argument can't be negative. CID# 212322, ftell(f) can …

…be negative. Not allowed in malloc...
from @iceman1001

8 years agoFIX: Coverity, unintended sign extention, CID #121363, (numbits << 16…
marshmellow42 [Sun, 14 Feb 2016 16:42:34 +0000 (11:42 -0500)]
FIX: Coverity, unintended sign extention, CID #121363, (numbits << 16…

…) becomes int, then uint64_t. But the signness might set all upper bits
to 1 in the process.
from @iceman1001 .

Impressum, Datenschutz