freebsd-ports/emulators/virtualbox-ose/files/patch-src-VBox-Main-src-server-VirtualBoxImpl.cpp
Guido Falsi c7901a4b4e - Update VirtualBox ports to 5.2.44
- Adapt and regenerate patches
- Reduce differences in patch-src_VBox_Devices_PC_vbox-cpuhotplug.dsl [1]

Patch based on one provided by Mario Lobo <lobo@bsd.com.br>.

Many thanks to people who provided ideas and suggetions in the
PR and review.

PR:			244212
Submitted by:		Nikita Stepanov <nikitastepan0v@bk.ru>
Reviewed by:		kevans [1]
Tested by:		lwshu
Approved by:		ports-secteam (joneum)
MFH:			2020Q3
Security:		1e7b316b-c6a8-11ea-a7d5-001999f8d30b
Differential Revision:	https://reviews.freebsd.org/D25496
2020-07-19 09:19:22 +00:00

11 lines
502 B
C++

--- src/VBox/Main/src-server/VirtualBoxImpl.cpp.orig 2020-05-13 19:44:10 UTC
+++ src/VBox/Main/src-server/VirtualBoxImpl.cpp
@@ -2251,7 +2251,7 @@ int VirtualBox::i_encryptSettingBytes(const uint8_t *a
if (aCiphertextSize < 32)
return VERR_INVALID_PARAMETER;
- AssertCompile(sizeof(m->SettingsCipherKey) >= 32);
+ // AssertCompile(sizeof(m->SettingsCipherKey) >= 32);
/* store the first 8 bytes of the cipherkey for verification */
for (i = 0, j = 0; i < 8; i++, j++)