Open andreasschulze opened 2 months ago
In develop branch, the variable name pct
has been changed to signpct
but it contains same logic. Also I could confirm that it causes "SIGFPE, Arithmetic exception. Integer divide by zero.".
I think in the case bodylen == 0
the status should not be DKIM_STATUS_PARTIAL.
With the patch on PR #223, I could confirm the case I tried above does not cause exception.
The config option "Minimum" can be set to "100%". Rationale: I do not want partial signed messages. This setting worked well until someone sent a message with no body at all. Then, OpenDKIM fail.
The reason is probably this code
no body mean
bodylen == 0
-> division by zero -> boom (but it's not verified by a debugger or stack trace)Fortunately, the code allow other ways to express the same "I do not want partial signed messages":