#1 2023-10-07 12:22:17

lfyey121
Member
From: china
Registered: 2022-08-25
Posts: 66

CompareMem function problem

In line 1264 of the mormot.net.acme unit, CompareMem(P, @_ACME_CHALLENGE_PATH, ACME_CHALLENGE_PATH_LEN) executes incorrectly and returns false all the time.

My environment is lazarus 3.99, FPC3.3.1(i386), windows 10

Offline

#2 2023-10-07 12:28:06

lfyey121
Member
From: china
Registered: 2022-08-25
Posts: 66

Re: CompareMem function problem

The received data url:

  /.well-known/acme-challenge/Fx3W3J_cIlgHswjpA_NMDES4GPJ0acGEBHtXaCgTlsM

Offline

#3 2023-10-07 12:45:00

lfyey121
Member
From: china
Registered: 2022-08-25
Posts: 66

Re: CompareMem function problem

I trace that in asm code, the comparison of the first 4 bytes is already inconsistent

Offline

#4 2023-10-07 17:58:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: CompareMem function problem

Yes, this code is incorrect.

Please try with https://github.com/synopse/mORMot2/commit/409f9984

Offline

#5 2023-10-08 03:20:50

lfyey121
Member
From: china
Registered: 2022-08-25
Posts: 66

Re: CompareMem function problem

Thanks
this issue has been solved,
but this mormot.net.acme has found a new issue here, I have submitted a new topic

Offline

Board footer

Powered by FluxBB