Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing TargetPlaformMinVersion, causing issues with UWP under VS2022 #6

Closed
wrobelda opened this issue Aug 16, 2022 · 0 comments
Closed

Comments

@wrobelda
Copy link

wrobelda commented Aug 16, 2022

Apparently TargetPlaformMinVersion is required to build UWP under VS2022, see microsoft/vcpkg#23757 (search for for the keyword in speech)

Possible Fix

Adding TargetPlatformMinVersion to _winrt.vcxproj fixes that issue.

Note that it likely applies to all the other of your forks. Probably worth adding to the regular, non-_winrt project files, too.

@Sibras Sibras closed this as completed in 45e71f7 Aug 27, 2022
Sibras pushed a commit that referenced this issue Jun 29, 2024
* cipher/kdf.c (balloon_xor_block): Use 'buf_xor' helper function; Change
pointer parameters to 'void *' type.
(balloon_final): Don't cast last_block to 'u64 *' for balloon_xor_block
call.
--

Seen on s390x UBSAN:
/home/testbuild/libgcrypt/cipher/kdf.c:1130:12: runtime error: load of misaligned address 0x00400181370c for type 'u64', which requires 8 byte alignment
0x00400181370c: note: pointer points here
  01 01 01 01 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
              ^
    #0 0x4001a3f3d3  (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/src/.libs/libgcrypt.so.20+0x1f83d3)
    #1 0x40019cf049  (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/src/.libs/libgcrypt.so.20+0x188049)
    #2 0x400000acbf  (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0xacbf)
    #3 0x4000008931  (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0x8931)
    #4 0x400271a031  (/lib/libc.so.6+0x2b031)
    #5 0x400271a10d  (/lib/libc.so.6+0x2b10d)
    #6 0x4000009bcf  (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0x9bcf)

GnuPG-bug-id: 5817
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant