mirror of
https://github.com/openwall/john.git
synced 2026-12-03 20:43:49 +07:00
[GH-ISSUE #1331] Fix 32-bit builds breakage from Stribog #837
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#837
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magnumripper on GitHub (May 18, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1331
Originally assigned to: @kholia on GitHub.
Problem introduced by
ebbbfc1a8One possibility (although not the best) is to just #ifdef the whole file outside of the plugin stanza. Similar to eg. rawSHA1_ng_fmt_plug.c but in this case checking for eg. ARCH_SIZE after including arch.h
But it should be very trivial to actually fix it instead. Why does it break at all?
@jfoug commented on GitHub (May 19, 2015):
The intrinsic _mm_insert_epi64 is not a valid instruction under 32 bit (tested cygwin and ubuntu 32 bit)
Also, the intrisic _mm_cvtsi64_si128 is not in 32 bit land.
The fix 'could' be to build our own _mm_insert_epi64 that has #ifdef for 32 bit wrapper around it.
@jfoug commented on GitHub (May 19, 2015):
This patch at least allows this file to be built on 32 bit systems. It will fail however. NOTE, I think this will build properly on a < sse4.1 system, but if run there, it will core.
@magnumripper commented on GitHub (May 19, 2015):
Plugs can easily depend on things like SSE4.1. Look at rawSHA1_ng_fmt_plug.c just before plugin stanza.
@magnumripper commented on GitHub (May 19, 2015):
Should be easy to write proper (albeit slow) emulation functions though. With some luck we may already have something usable in pseudo-intrinsics.c
@magnumripper commented on GitHub (May 19, 2015):
This is proper emulation (works fine):