Commit Graph

2331 Commits

Author SHA1 Message Date
Mounir IDRASSI
e8f83544ea
Windows: Fix false positive detection of new device insertion when clear keys option is enable
When this option is enabled, we first build the list of currently inserted devices then we start listening to insertion events.
When a device insertion occurs, we check if this device is on our list and if yes, we ignore its insertion.
We also ignore devices whose Device ID starts with "SWD\" and "ROOT\" since these are not real devices.
2023-08-05 00:45:39 +02:00
kovalev0
5a6b445f0e
fix warnings and UB (#1164)
* Crypto: fix warning mismatched bound

../Crypto/cpu.c:67:32: warning: argument 2 of type 'uint32[4]'
{aka 'unsigned int[4]'} with mismatched bound [-Warray-parameter=]
   67 | int CpuId(uint32 input, uint32 output[4])
      |                         ~~~~~~~^~~~~~~~~
In file included from ../Crypto/cpu.c:3:
../Crypto/cpu.h:236:33: note: previously declared as 'uint32 *'
{aka 'unsigned int *'}
  236 | int CpuId(uint32 input, uint32 *output);

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Core/Unix: fix warning ignoring return value

Unix/CoreUnix.cpp: In member function 'virtual std::shared_ptr<VeraCrypt:\
:VolumeInfo> VeraCrypt::CoreUnix::MountVolume(VeraCrypt::MountOptions&)':
Unix/CoreUnix.cpp:682:55: warning: ignoring return value of
'int chown(const char*, __uid_t, __gid_t)' declared with attribute
'warn_unused_result' [-Wunused-result]
  682 |     chown (mountPoint.c_str(), GetRealUserId(), GetRealGroupId());
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Main/Forms: fix warning cast to pointer from integer of different size

Forms/MainFrame.cpp: In member function 'void VeraCrypt::MainFrame:\
:UpdateVolumeList()':

Forms/MainFrame.cpp:1718:106: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
 1718 |       Gui->InsertToListCtrl (SlotListCtrl, ++prevItemIndex,
        fields, 0, (void *) volume->SlotNumber);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Forms/MainFrame.cpp:1753:114: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
 1753 |       Gui->InsertToListCtrl (SlotListCtrl, ++prevItemIndex,
        fields, 0, (void *) slotNumber);
      |            ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

* Crypto: fix undefined behavior signed integer overflow

In function 'twofish_set_key':
cc1: warning: iteration 4 invokes undefined behavior
[-Waggressive-loop-optimizations]
../Crypto/Twofish.c:626:23: note: within this loop
  626 |         for (i = 0; i != 40; i += 2)
      |                     ~~^~~~~

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>

---------

Signed-off-by: Vasiliy Kovalev <kovalev@altlinux.org>
Co-authored-by: Vasiliy Kovalev <kovalev@altlinux.org>
2023-08-04 23:49:11 +02:00
Patriccollu
32e9703905
Update Corsican translation on 2023-07 (2nd) (#1162) 2023-07-31 23:14:18 +02:00
Jertzukka
9b29eadc41
Windows: Add installer language support for rest of the translations (#1160)
Currently there are a lot of translated strings that are never seen
anywhere as the installer doesn't offer all the available languages
as options in the installer wizard (sans Burmese).
2023-07-29 16:31:40 +02:00
Mounir IDRASSI
be5c28c481
Release Notes: Fix typo 2023-07-25 22:26:16 +02:00
Mounir IDRASSI
b7fc6897b9
Linux/macOS: Increment version to 1.26.4 in installation packages 2023-07-25 22:25:46 +02:00
Mounir IDRASSI
e80dd29c0d
Windows: remove unused variable 2023-07-24 09:20:43 +02:00
Mounir IDRASSI
d4fdba1d29
Update Release Notes and set date of 1.26.4 to July 24th 2023-07-24 09:13:34 +02:00
harryytm
ab844d8bad
Language Translations files: update Chinese (Hong Kong) translation (#843)
* Update Chinese (Hong Kong) translation

- replace Mainland China wordings with Hong Kong wordings
- correcting size unit to use KiB, MiB, GiB, TiB
- using Windows default Chinese Traditional fonts

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

- translated some untranslated lines
- minor wording refinements

* Update Language.zh-hk.xml

daily commit for translation progress

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* Update Language.zh-hk.xml

* translated some more untranslated strings

* Update Language.zh-hk.xml

* Language Translations files: update Chinese (Hong Kong) translation

# minor wording changes
# corrected lang attribute to en on some untranslated entries
+ translated some untranslated entries
+ translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

 - translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

- minor changes

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries for Linux

* Language Translations files: update Chinese (Hong Kong) translation

- translated some new entries

* Update Language.zh-hk.xml

- add back and translated missing line 298
- minor wording changes
- major progress

* Update Language.zh-hk.xml

- refine wordings
- correct mismatch translations in lines 635-640
- minor progress

* Update Language.zh-hk.xml

- refine wordings
- correct line 470
- minor progress

* Update Language.zh-hk.xml

- correct line 164 and 273

* Update Language.zh-hk.xml
2023-07-24 09:11:50 +02:00
Mr-Update
bc9803f22e
Update Language.de.xml (#1158) 2023-07-24 09:10:33 +02:00
Matthaiks
9ffc544397
Update Polish translation (#1157) 2023-07-24 09:10:05 +02:00
Mounir IDRASSI
3f976c24d2
Linux/macOS: Remove TrueCrypt support 2023-07-24 08:48:52 +02:00
Mounir IDRASSI
ba74b9d5b8
Linux/macOS:Add EMV option checkbox to the fbp file. Remove TrueCrypt checkboxes.
We also update to wxFormBuilder 3.10.1
2023-07-23 21:45:16 +02:00
Mounir IDRASSI
ea1dfde8e6
Language XML files: update Russian XML file by Dmitry Yerokhin. 2023-07-23 15:12:00 +02:00
Mounir IDRASSI
b28cf591c0
XML Language files: remove \r from new entries as it is automatically added by code 2023-07-23 12:00:34 +02:00
Mounir IDRASSI
5b1ed38659
Windows: update signed drivers 2023-07-23 11:15:58 +02:00
Mounir IDRASSI
2111084fc6
Windows: Update driver inf file to meet new requirements for Microsoft driver submission 2023-07-23 11:15:05 +02:00
Mounir IDRASSI
b1cc49e3d7
Documentation: Indicate that TrueCrypt support is dropped starting from version 1.26 2023-07-23 10:05:10 +02:00
Mounir IDRASSI
75334fc37d
Translations: Add new entries. update Russian XML file by Dmitry Yerokhin. Increment version to 1.26.4 2023-07-23 10:03:26 +02:00
Mounir IDRASSI
334ea9c0b9
Windows: Make Expander progress messages translatable 2023-07-23 10:00:45 +02:00
Springfield Data Recovery
f037dae413
Update UserInterface.cpp (#1155)
Docs specify cascading encryption should be specified as "AES(Twofish)" but on Linux it requires "AES-Twofish".
2023-07-23 09:13:03 +02:00
Mounir IDRASSI
fa6359d424
Windows: Remove TrueCrypt support. Increment version to 1.26.4. 2023-07-22 10:25:22 +02:00
Mounir IDRASSI
34b00fa825
Windows: Fix compiler warnings 2023-07-18 08:38:02 +02:00
Mounir IDRASSI
c0785aa1d4
Windows: Fix buffer overrun caused by bug in UpperCaseCopy function 2023-07-17 14:28:45 +02:00
Mounir IDRASSI
9607b9708c
Windows: Fix link error with latest libzip by adding new file zip_source_pass_to_lower_layer.c tp VS projects 2023-07-17 14:26:53 +02:00
DLL125
65765798d8
Libzip (#1152)
* Update LZMA to latest

* Update Libzip

Libzip updated to latest.
2023-07-17 14:11:12 +02:00
Mounir IDRASSI
6267b91931
Windows: fix issue with fastCreate by requesting SE_MANAGE_VOLUME_NAME privilege before calling CreateFile
This ensures that the returned handle inherits the privilege
2023-07-16 11:08:24 +02:00
Mounir IDRASSI
c759c2230b
Language XML files: update Russian XML file by Dmitry Yerokhin. 2023-07-16 11:02:41 +02:00
Mounir IDRASSI
8491d5df65
HTML Documentation: Add Russian translation by Dmitry Yerokhin 2023-07-16 11:01:28 +02:00
Mounir IDRASSI
7ada94d36b
Windows: enhance secure desktop handling to try to workaround Windows 11 issue
Several enhancements implemented:
 - replace CreateThread by _beginthreadex to avoid potential issues when using C runtime
 - use an event to notify monitoring thread to stop instead of a volatile boolean
 - perform switch to the regular desktop in the main thread and not in the secure desktop thread
2023-07-15 02:59:13 +02:00
Mounir IDRASSI
49fff71d0a
Language XML files: update Russian XML file by Dmitry Yerokhin. 2023-07-13 20:14:31 +02:00
Mounir IDRASSI
014ed77130
Windows: when overwriting an existing file container, add its current size to the available free space 2023-07-11 21:21:18 +02:00
Mounir IDRASSI
b1f578f0ef
Update the Release Notes with URL related to the EMV project by the students 2023-07-11 19:43:27 +02:00
Mounir IDRASSI
1a46ed9aef
Language XML files: update Czech translation (contributed by Lagardere) 2023-07-11 19:07:37 +02:00
Mounir IDRASSI
210968bed1
Windows: Add a PowerShell script that can be used to create a volume from a given directory or file
The script will try to calculate the minimal required size to store the given directory or file in the exFAT formatted volume
2023-07-07 23:55:21 +02:00
Mounir IDRASSI
26fffec1e3
Release Notes: Fix typo 2023-07-07 23:49:12 +02:00
Mr-Update
a3ddcbd256
Update Language.de.xml (#1148)
- Translation completed
- Salutation pronouns corrected
2023-07-06 11:02:32 +09:00
Jertzukka
232d3290b0
Linux: Overwriting file container allows you to use its space (#1147)
When replacing a file container, we increase the `diskSpace`
by the file container's size. This doesn't affect the hidden volume
space logic, as in that case we use `MaxVolumeSize` when
`MaxVolumeSizeValid` is true instead of `AvailableDiskSpace`.
2023-07-05 19:00:37 +09:00
Jertzukka
aa49278673
Updates on WinCompiling docs and script (#1146) 2023-07-05 17:40:57 +09:00
Jertzukka
3987b922a8
Update .gitignore with .idea/ and blake2s build artifacts (#1145) 2023-07-02 23:18:58 +02:00
Mounir IDRASSI
4956acd3aa
Fix typos in Release Notes 2023-07-02 22:37:02 +02:00
Mounir IDRASSI
0e49b7bc33
Windows: Fix regression when creating multiple keyfiles with a fixed size 2023-07-02 22:36:33 +02:00
Jertzukka
3b80c8416b
Renormalize 7zWindows.h from CRLF to LF line separator as intended (#1144) 2023-07-02 21:51:44 +02:00
Mounir IDRASSI
efa815a6da
Indicate in Release Notes that EMV support must be enabled in the settings 2023-07-02 16:34:03 +02:00
Mounir IDRASSI
d2caa77207
Fix compiler type-cast warnings 2023-07-02 15:25:21 +02:00
Mounir IDRASSI
fe30ebe3f3
Update Release Notes with latest changes. 2023-07-02 15:01:28 +02:00
Mounir IDRASSI
2a728dec88
Windows: Use full list of supported cluster sizes for NTFS, ReFS and exFAT filesystems
We keep FAT32 list of supported cluster sizes as it is today for compatibility with existing FAT code
2023-07-01 23:36:05 +02:00
Mounir IDRASSI
580423b5dd
Windows: Add missing header changes needed for previous commit 2023-07-01 23:32:44 +02:00
Mounir IDRASSI
7a3daa389c
Windows: Make API formatting fallback to format.com in case of elevation. remove dead code from ExternalFormatFs
We also modify UacFormatNtfs/UacFormatFs to return actual error code in case of failure
2023-07-01 22:46:01 +02:00
Patriccollu
e28de414e0
Update Corsican translation on 2023-07 (#1140) 2023-07-01 22:38:52 +02:00