Commit Graph

28 Commits

Author SHA1 Message Date
sebres
eef99c5416 GetQuotedString() uses correct windows cmdline notation
- escaping of backslash and quotes
- fixes gh-312 for new cmdline parser algorithm (gh-307, gh-310)

Signed-off-by: Sergey G. Brester <info@sebres.de>
Reviewed-by: Tino Reichardt <milky-7zip@mcmilk.de>
2023-04-14 21:18:03 +02:00
sebres
19e97e4c68 Code deduplication GetQuotedString()
Moved single function GetQuotedString() to MyString

Signed-off-by: Sergey G. Brester <info@sebres.de>
Reviewed-by: Tino Reichardt <milky-7zip@mcmilk.de>
2023-04-14 21:17:56 +02:00
sebres
8cfdd747c8 Fixes for "vulnerable command line parsing"
Signed-off-by: Sergey G. Brester <info@sebres.de>
Reviewed-by: Tino Reichardt <milky-7zip@mcmilk.de>
2023-04-14 21:17:50 +02:00
Tino Reichardt
d94284915a Revert the fixes for the "vulnerable command line parsing"
revert these commits:
- e615c8c63f
- 45c245645d.
- cc1192c7d9.
2023-04-05 19:12:15 +02:00
Sergey G. Brester
e615c8c63f CommandLineParser: amend to #307
compatibility to CommandLineToArgvW or stdlib's main argument parsing

Signed-off-by: Sergey G. Brester <serg.brester@sebres.de>
2023-03-30 18:00:15 +02:00
sebres
45c245645d few optimizations building string vector with arguments
- avoid unneeded copying (don't gather remaining string)
- don't build args byte by byte

Signed-off-by: Sergey G. Brester <serg.brester@sebres.de>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
2023-03-22 17:34:35 +01:00
sebres
cc1192c7d9 fixes vulnerable command line parsing
- considers valid windows escape sequences, like backslashes
  followed by quote-char as well as quote triples)
- SplitCommandLine works now very similar to CommandLineToArgvW
  (but doesn't require dependency to shell32)

Signed-off-by: Sergey G. Brester <serg.brester@sebres.de>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
2023-03-22 17:32:20 +01:00
Tino Reichardt
57558682a8 Update to 7-Zip Version 22.00
See: https://sourceforge.net/p/sevenzip/discussion/45797/thread/9c2d9061ce/
2022-08-07 10:06:40 +02:00
Tino Reichardt
6a4fe97fc3 Update to 7-Zip Version 21.07
See: https://sourceforge.net/p/sevenzip/discussion/45797/thread/0a7b47970b/
2022-08-07 10:06:40 +02:00
Tino Reichardt
e3067bf67b Update to 7-Zip Version 21.06
See https://sourceforge.net/p/sevenzip/discussion/45797/thread/b463f34259/
2022-08-07 10:06:40 +02:00
Tino Reichardt
09497b7ba0 Update to 7-Zip Version 21.04
- first test... no release!!!
2021-11-06 22:17:34 +01:00
Tino Reichardt
df06f31a42 Update to 7-Zip Version 21.03 2021-08-26 04:33:47 +02:00
Tino Reichardt
48fa49f76c Update to 7-Zip Version 21.02 2021-05-13 19:16:55 +02:00
Tino Reichardt
6b2a151549 Remove unneeded file HashesReg.cpp 2021-04-06 20:08:05 +02:00
Tino Reichardt
576c5df947 Add BLAKE3 hash function 2021-04-06 20:07:29 +02:00
Tino Reichardt
9c3c277ad7 Normalize all the line endings 2020-05-31 13:08:03 +02:00
Tino Reichardt
ccca7cd09d Update to 7-Zip Version 19.00
- Encryption strength for 7z archives was increased the size of random
  initialization vector was increased from 64-bit to 128-bit, and the
  pseudo-random number generator was improved.
- Some bugs were fixed.
2019-02-23 09:25:31 +01:00
Tino Reichardt
a488536124 Update to 7-Zip Version 18.06 2018-12-30 13:30:20 +01:00
Tino Reichardt
36a17a5184 Add some hash functions
- new: md2, md4, md5, sha384, sha512, xxhash-32, xxhash-64
- put Blake2sp hash stuff back to rar code
- added the hashes to GUI and Explorer Menu code
2018-11-03 00:18:33 +01:00
Tino Reichardt
add56b5aed Add MD5 hash function 2018-11-02 07:22:34 +01:00
Tino Reichardt
9947dd780b Fix naming: Blake2s -> Blake2sp 2018-11-01 22:47:25 +01:00
Tino Reichardt
1048d4e133 Minor fixes
- fix Zstandard Sfx stuff -> SetNumberOfThreads()
- fix formatting of XXH32Reg.cpp and XXH64Reg.cpp
- add Blake2s hash to explorer context menu
2018-11-01 18:18:34 +01:00
Tino Reichardt
7252a465e5 Add Blake2s to CPP/Common
- was in the Rar5 Code
2018-11-01 18:17:21 +01:00
Tino Reichardt
f4bf9c8d29 Add xxHash functionss to context menu 2018-11-01 08:00:13 +01:00
Tino Reichardt
78fc3c9bc5 Update to 7-Zip Version 18.05 2018-10-21 14:23:28 +02:00
Tino Reichardt
aa5ba75da0 Update to 7-Zip 17.00 Beta 2017-04-30 14:14:14 +02:00
Tino Reichardt
0e6c1206d2 Update to 7-Zip 16.03 2016-09-29 20:02:18 +02:00
Tino Reichardt
c3967fe27a Initialer Commit 2016-06-25 21:15:50 +02:00