Commit graph

150 commits

Author SHA1 Message Date
iceman1001 4eb11f470d reveng mem leaks 2020-10-06 17:14:10 +02:00
iceman1001 01c35a9bfb style 2020-10-06 16:17:57 +02:00
Philippe Teuwen 0339667e9e cliparser: ignore extra spaces between options 2020-10-04 20:33:56 +02:00
iceman1001 4f4593d9fa remove debugstatement 2020-10-04 18:54:43 +02:00
iceman1001 166e626c98 add u64_y support in argtable-cliparser. 2020-10-04 17:41:04 +02:00
iceman1001 ad494a152c cliparser returns signed ints, to get unsigned 32 we need to use the double. 2020-10-04 16:13:17 +02:00
Philippe Teuwen aa3d29e6ac CLIParamStrToBuf: add string null terminator 2020-10-04 15:11:36 +02:00
iceman1001 dc9e16a4e1 add some defines to get double 2020-10-04 10:57:21 +02:00
mwalker33 68f0945d48 Update argtable3.c
Remove = when only long option
2020-10-03 20:21:16 +10:00
iceman1001 670e2fb6b0 standard form output (concatenated) 2020-10-03 11:48:52 +02:00
mwalker33 e6398674b0 Cliparser cleanup
Update to remove "=" from help text
update md file, fix typos and better notses for the options.
2020-10-03 19:06:01 +10:00
Philippe Teuwen c3c59e35cb make style 2020-09-30 14:27:19 +02:00
mwalker33 e724204978 cliparser cleanup 2
cmdhf14a.c, cmdhfido.c, cmdhficlass.c, cmdhfmf.c
menu help updates.
cliparser.c : tweak for readability with long examples.
2020-09-30 16:39:08 +10:00
mwalker33 561c5f779e cliparser cleaning
checked cmdhf.c and cmddata.c and tweaked cliparser.c
2020-09-30 07:55:51 +10:00
mwalker33 38358e2e2a Update cliparser.c
Change white to default user color
2020-09-30 07:28:05 +10:00
mwalker33 45ca5c416d Update cliparser.c
Adjusted to meet RRG format style and color.
2020-09-29 20:21:34 +10:00
Ave 9c5c00d620
Allow writes up to 256 bytes with mfdes writedata
And change help text to say 256 instead of 0xFFFF.

Closes #977
2020-09-27 19:40:13 +03:00
Philippe Teuwen e9f84f1e2d noprintf: fix cmake 2020-08-29 22:54:55 +02:00
iceman1001 dfaba2ee8c no printf 2020-08-29 16:15:04 +02:00
Philippe Teuwen b2a6fca0ee Fix bug when cmake android and CMAKE_BUILD_TYPE=Release, see comments:
The presence of "filter" from crypto1.c as an exported function depends on the chosen compilation optimization level.
So if the common/crapto1/ and the code using it (here hardnested) are not using the same level, there will be a mismatch,
in this case hardnested_bruteforce.c expecting crypto1.c to provide filter()
2020-06-18 19:27:33 +02:00
iceman1001 61be7c7c30 chg: cliparse should have atleast same file_max_path_len 2020-06-10 13:31:57 +02:00
Philippe Teuwen cb614f3f11 cliparser: generalize ctx usage 2020-06-10 11:34:33 +02:00
Philippe Teuwen 569107579e Fix cliparser buffer allocation 2020-06-10 11:33:15 +02:00
Philippe Teuwen c76b3061da Fix more deps/liblua Android cross-compilation 2020-06-08 20:20:16 +02:00
Philippe Teuwen 526407ed5c Fix deps/liblua Android cross-compilation 2020-06-08 19:18:08 +02:00
Philippe Teuwen 224cb2ffd7 make style 2020-06-08 03:15:10 +02:00
Philippe Teuwen 15012198f9 client: replace zlib by bzip2 2020-06-08 02:50:43 +02:00
Philippe Teuwen 8852e1f9cd Remove readline from libamiibo, no reason to be there 2020-06-05 13:13:27 +02:00
iceman1001 dcdd9ce364 nothing special 2020-06-03 15:02:35 +02:00
Philippe Teuwen 8667b34da6 document mingw tweak 2020-06-03 12:54:59 +02:00
iceman1001 653f5b4e5d chg: make define 2020-06-02 13:35:16 +02:00
iceman1001 7064b73b48 chg parsing free Thanks @doegox! 2020-06-02 13:27:54 +02:00
iceman1001 f830843442 coverity.. 2020-06-02 13:09:29 +02:00
iceman1001 cc6f497897 cppcheck 2020-06-02 12:56:38 +02:00
iceman1001 422e018718 cppcheck 2020-06-02 12:56:20 +02:00
iceman1001 2daa2c09fd fix coverity 290266 2020-06-02 11:27:47 +02:00
iceman1001 5b1e16b14e cppcheck warning 2020-06-02 09:24:23 +02:00
iceman1001 c3ab0b6527 fix: #752 MINGW env needs to be using gnu printf 2020-06-02 08:54:59 +02:00
Philippe Teuwen 6326c4126c cliparser: remove global vars 2020-06-02 00:49:54 +02:00
Philippe Teuwen 72acec5806 Makefile & CMake rework 2020-05-25 02:15:06 +02:00
Philippe Teuwen 9d97962759 use system jansson if available 2020-05-24 23:21:30 +02:00
iceman1001 d40251ff0b Revert "Release v4.9237 - Ice Coffee "
This reverts commit 833bc4d9a3.
2020-05-21 21:55:15 +02:00
iceman1001 833bc4d9a3 Release v4.9237 - Ice Coffee 2020-05-21 21:55:15 +02:00
Philippe Teuwen bf5c054414 Revert "Release v4.9230 - Ice Coffee "
This reverts commit db2e97c860.
2020-05-21 12:51:35 +02:00
Philippe Teuwen db2e97c860 Release v4.9230 - Ice Coffee 2020-05-21 12:51:35 +02:00
iceman1001 3e389c6e07 Revert "Release v4.9224 - Ice Coffee "
This reverts commit 9cec93fd54.
2020-05-21 09:25:32 +02:00
iceman1001 9cec93fd54 Release v4.9224 - Ice Coffee 2020-05-21 09:25:32 +02:00
iceman1001 521a76d3c2 Revert "Release v4.9222 - Ice Coffee "
This reverts commit a5aeadc339.
2020-05-21 09:24:38 +02:00
iceman1001 a5aeadc339 Release v4.9222 - Ice Coffee 2020-05-21 09:23:32 +02:00
Philippe Teuwen 15ccb34535 Add -Wconversion in EXTRACFLAGS 2020-05-20 18:41:10 +02:00
Philippe Teuwen ffdd338dea make style 2020-05-14 01:04:26 +02:00
Philippe Teuwen 66fd6d70a0 hardnested: more readable preprocessing 2020-05-12 13:26:16 +02:00
Philippe Teuwen 2819792f8e Revert "fix osx"
This reverts commit 09903384fa.
2020-05-12 00:27:21 +02:00
Philippe Teuwen d2f9fb6084 fix hardnested switch-enum 2020-05-12 00:26:55 +02:00
iceman1001 09903384fa fix osx 2020-05-12 00:25:44 +02:00
Philippe Teuwen b46a99d7d7 remove switch-enum warnings 2020-05-11 23:50:14 +02:00
Philippe Teuwen b40c8dd5d2 tinycbor: avoid overriding cflags, hide warnings 2020-05-11 13:47:19 +02:00
Philippe Teuwen 8a9c7d2efc argtable3: fix buffer overrun
This bug was suddently triggered by Appveyor compilation and seems to make sense.

[-] CC argtable3.c

    inlined from 'arg_cat_option' at argtable3.c:4208:13,
    inlined from 'arg_print_syntax' at argtable3.c:4392:9:
argtable3.c:4149:11: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
 4149 |     *dest = 0;
      |     ~~~~~~^~~
argtable3.c: In function 'arg_print_syntax':
argtable3.c:4381:14: note: at offset 200 to object 'syntax' with size 200 declared here
 4381 |         char syntax[200] = "";
      |              ^~~~~~
2020-05-10 23:59:46 +02:00
Philippe Teuwen 394397c54e silent tinycbor warnings 2020-05-09 12:56:40 +02:00
Philippe Teuwen 74f16dc092 move whereami to deps 2020-05-08 17:04:28 +02:00
Philippe Teuwen 94d4f2b75e fix cmake for reveng 2020-05-07 14:45:53 +02:00
Philippe Teuwen b9f6f096aa hook reveng outputs to pm3 machinery, add regression test 2020-05-07 14:20:49 +02:00
Philippe Teuwen 3c9a19d4c1 Revert "update argtable3"
It was an attempt to solve the mysterious reveng getopt bug
but it brings more troubles and throws away multi-platform pm3 tuning

This reverts commit f3790a89a5.
2020-05-07 01:00:40 +02:00
Philippe Teuwen 2fcad93efc proper way to fix reveng getopt bug 2020-05-07 00:23:19 +02:00
Philippe Teuwen a2a5700a85 fix reveng getopt bug 2020-05-06 23:33:55 +02:00
Philippe Teuwen f3790a89a5 update argtable3 2020-05-06 23:33:30 +02:00
Philippe Teuwen 53af4304c1 cmake deps: add prefix pm3rrg_rdv4_ 2020-05-06 15:21:29 +02:00
Philippe Teuwen 9478dbc071 cmake deps: add -fPIC so they can be integrated in a pm3 shared lib 2020-05-06 15:20:43 +02:00
dxl 021ee95e07 don't mix ifdef and defined 2020-05-06 13:01:17 +02:00
Philippe Teuwen 4d4984657e activate more warnings and ease their mgmt 2020-05-03 19:46:11 +02:00
Philippe Teuwen c94eae0046 fix warning about cast realignment, WIP 2020-05-03 17:34:01 +02:00
Philippe Teuwen 3529aea157 stricter warnings, wip 2020-05-03 01:13:28 +02:00
Philippe Teuwen 0e39cb8e34 stricter warnings, wip 2020-05-02 23:54:27 +02:00
Philippe Teuwen f158f347e5 reveng Makefile: allow to skip test (e.g. for cross-compilation) 2020-05-01 00:13:56 +02:00
Philippe Teuwen 07f41da74d fix coverity 226490 even if in practice next_common_bits is never > 7 2020-04-29 20:11:43 +02:00
iceman1001 85f2233161 coverity fix 226496 226492 226490 2020-04-29 17:27:17 +02:00
iceman1001 f416fa9b4f cppchecker fixes 2020-04-26 12:56:19 +02:00
Philippe Teuwen ebd476a9c5 hardnested make: fix default compiler 2020-04-24 21:45:46 +02:00
Philippe Teuwen fbe4e20326 remove c99 and c++11 restrictions 2020-04-24 16:43:21 +02:00
Philippe Teuwen d6564e8eca fix cmake for mingw 2020-04-24 00:08:42 +02:00
Philippe Teuwen 31e79905f8 Clean more old paths 2020-04-21 01:44:31 +02:00
Philippe Teuwen e4dea67cf3 rework reveng<>cliparser 2020-04-19 13:13:13 +02:00
Philippe Teuwen 4967096e3b make/cmake cliparser lib and remove redundant getopt from reveng 2020-04-19 12:40:50 +02:00
Philippe Teuwen 5f4385986c cleaning makefile & cmake 2020-04-19 12:40:46 +02:00
Philippe Teuwen 45134859cf cmake: remove unneeded PIC in hardnested lib 2020-04-18 20:01:51 +02:00
Philippe Teuwen c2ff11f321 hardnested compilation reorganized to be similar with cmake approach 2020-04-18 19:41:14 +02:00
Philippe Teuwen f9857a8b0c cmake: add cflags 2020-04-18 17:37:11 +02:00
Philippe Teuwen dc6b751ea3 cmake: rework includes, wip, need to modify more src after merge 2020-04-18 16:27:20 +02:00
Philippe Teuwen f32974bb07 cmake libs static 2020-04-18 16:27:20 +02:00
Philippe Teuwen 2aa587f35f cmake: reveng keep includes local 2020-04-18 16:27:20 +02:00
Philippe Teuwen b5ce5c1d99 cmake: mbedtls keep includes local 2020-04-18 16:27:20 +02:00
Philippe Teuwen 1ccd764837 cmake: hardnested 2020-04-18 16:27:20 +02:00
Philippe Teuwen c5d2655ebe cmake: fix reveng defines, keep them local 2020-04-18 16:27:20 +02:00
Philippe Teuwen 0b68f3b81e cmake: fix zlib defines, keep them local 2020-04-18 16:27:20 +02:00
Philippe Teuwen b7fb3b0746 cmake: fix jansson defines, keep them local 2020-04-18 16:27:20 +02:00
Philippe Teuwen 0fc5c41a49 cmake: fix liblua platform definitions to match regular Makefile 2020-04-18 16:27:20 +02:00
Philippe Teuwen 397f46c0ef cmake: Fix the (not yet used) amiibo srcs 2020-04-18 16:27:20 +02:00
Bjoern Kerler 6b1a8b8390 Add cmake support 2020-04-18 16:24:29 +02:00
iceman1001 1bf32aad90 Chg: android adaptions from @xianglin1998 2020-04-16 16:46:09 +02:00
Bjoern Kerler 81bc0bc2b9 Reorder client src directories 2020-04-16 10:53:24 +02:00