For the correctness of rndjent implementation, I'm applying D461: jent random requires finalizer to deallocate secure memory.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Dec 27 2018
Dec 25 2018
Dec 23 2018
Dec 20 2018
Dec 19 2018
Dec 18 2018
Dec 17 2018
Logfile:
18:24:30/11956/enabled debug flags:
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'enableSmime' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'encryptDefault' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'signDefault' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'inlinePGP' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'replyCrypt' val '1'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'preferSmime' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'autoresolve' val '1'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'autoretrieve' val 'null'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'automation' val '1'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'autosecure' val '1'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'autotrust' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'searchSmimeServers' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'smimeHtmlWarnShown' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'syncEnc' val '0'
18:24:30/11956/common.cpp:load_extension_value: LoadReg 'syncDec' val '0'
18:24:30/11956/gpgoladdin.cpp:~GpgolAddinFactory: Object deleted
18:24:30/11956/gpgoladdin.cpp:OnConnection: this is GpgOL 2.3.2
18:24:30/11956/gpgoladdin.cpp:OnConnection: using GPGME 1.12.1-beta43
18:24:30/11956/gpgoladdin.cpp:OnConnection: in Outlook 16.0.0.9126
18:24:30/11956/gpgoladdin.cpp:addGpgOLToReg: Found gpgol reg key. Leaving it unchanged.
18:24:30/11956/gpgoladdin.cpp:addGpgOLToReg: Found gpgol reg key. Leaving it unchanged.
18:24:30/11956/oomhelp.cpp:delete_category: Deleted category 'gpgol_string_1'
18:24:30/11956/olflange.cpp:install_forms: form `C:\Program Files (x86)\Gpg4win\share\gpgol\gpgol.cfg' installed
18:24:30/11956/olflange.cpp:install_forms: form `C:\Program Files (x86)\Gpg4win\share\gpgol\gpgol-ms.cfg' installed
18:24:30/11956/olflange.cpp:install_forms: form `C:\Program Files (x86)\Gpg4win\share\gpgol\gpgol-cs.cfg' installed
18:24:30/11956/olflange.cpp:install_forms: form `C:\Program Files (x86)\Gpg4win\share\gpgol\gpgol-form-signed.cfg' installed
18:24:30/11956/olflange.cpp:install_forms: form `C:\Program Files (x86)\Gpg4win\share\gpgol\gpgol-form-encrypted.cfg' installed
18:24:30/11956/storing option smimeHtmlWarnShown' value=0'
18:24:30/11956/gpgoladdin.cpp:check_html_preferred: No type or key for ReadAsPlain
18:24:30/11024/keycache.cpp:do_populate: Populating keycache
18:24:30/11024/keycache.cpp:do_populate_protocol: Starting keylisting for proto OpenPGP
18:24:31/11956/application-events.cpp:Invoke: ItemLoad event. Getting object.
18:24:31/11956/application-events.cpp:Invoke: ItemLoad event without mailitem.
18:24:31/11956/application-events.cpp:Invoke: ItemLoad event. Getting object.
18:24:31/11956/application-events.cpp:Invoke: Creating mail object for item: 000002035e0f7df0
18:24:31/8604/windowmessages.cpp:do_async: Do async with type 1108 after 0 ms
18:24:31/11956/mapihelp.cpp:mapi_change_message_class: checking message class `IPM.Note.GpgOL.PGPMessage'
18:24:31/11956/mapihelp.cpp:mapi_create_attach_table: message has 1 attachments
18:24:31/11956/mapihelp.cpp:mapi_create_attach_table: attachment info:
18:24:31/11956/ 3435237 mt=4 fname=gpgol_string_2' ct=(null)' ct_parms=`(null)'
18:24:31/11956/oomhelp.cpp:get_unique_id: '000002035e0f7df0' has now the uid: '3bb0889d-49b1-4644-8527-cfc0a8a52f69'
18:24:31/11956/mail.cpp:setUUID_o: uuid for 0000020350c563e0 set to 3bb0889d-49b1-4644-8527-cfc0a8a52f69
18:24:31/11956/mail.cpp:setUUID_o: uuid for 0000020350c563e0 is now 3bb0889d-49b1-4644-8527-cfc0a8a52f69
18:24:31/11956/mail.cpp:setUUID_o: Resetting uuid for 0000020350c563e0 to 3bb0889d-49b1-4644-8527-cfc0a8a52f69
18:24:31/11956/oomhelp.cpp:get_unique_id: '000002035e0f7df0' has now the uid: '3bb0889d-49b1-4644-8527-cfc0a8a52f69'
18:24:31/11024/keycache.cpp:do_populate_protocol: Starting keylisting for proto OpenPGP
18:24:31/11956/mimedataprovider.cpp:collect_data: found PGP Message marker,
18:24:31/11956/mimedataprovider.cpp:collect_data: Fixing up a possible broken message.
18:24:31/11956/mail.cpp:updateOOMData_o
18:24:31/11956/oomhelp.cpp:get_sender_SenderEMailAddress: Sender found
18:24:31/11956/oomhelp.cpp:get_sender_SentRepresentingAddress Found sent representing address "gpgol_string_3"
18:24:31/6572/mail.cpp:do_parsing: preparing the parser for: 0000020350c563e0
18:24:31/6572/parsecontroller.cpp:parse:0000020350c55810 decrypt: 1 verify: 0 with protocol: OpenPGP sender: gpgol_string_3 type: 10
18:24:31/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1108
18:24:31/11956/windowmessages.cpp:gpgol_window_proc: clearing last mail
18:24:31/11024/keycache.cpp:do_populate: Keycache populated
18:24:32/6572/parsecontroller.cpp:parse:0000020350c55810 decrypt / verify done.
18:24:32/6572/parsecontroller.cpp:parse:0000020350c55810: decrypt err: 0 verify err: 0
18:24:32/6572/parsecontroller.cpp:parse:0000020350c55810 Decrypt / verify done errs: 0 / 0 numsigs: 1.
18:24:32/6572/windowmessages.cpp:do_in_ui_thread: Sending message of type 1102
18:24:32/15496/keycache.cpp:do_update updating: "gpgol_string_4" with protocol OpenPGP
18:24:32/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1102
18:24:32/11956/keycache.cpp:getFromMap using "gpgol_string_4" for "gpgol_string_4"
18:24:32/11956/keycache.cpp:getByFpr Cache hit for gpgol_string_4.
18:24:32/11956/mail.cpp:updateSigstate: No signature with enough trust. Using first
18:24:32/11956/categorymanager.cpp:registerCategory: Register category gpgol_string_1 in new store gpgol_string_5 ref now 1
18:24:32/11956/oomhelp.cpp:get_oom_object: no object
18:24:32/11956/oomhelp.cpp:get_oom_object: no object
18:24:32/11956/mail.cpp:updateBody_o: Did not find body charset. Using internet Codepage 65001.
18:24:32/11956/mail.cpp:installFolderEventHandler_o: Install folder events watcher for gpgol_string_6.
18:24:32/11956/mail.cpp:parsing_done: Delayed invalidate to update sigstate.
18:24:32/15496/keycache.cpp:insertOrUpdateInFprMap Lost secret info on update. Merging.
18:24:32/15496/keycache.cpp:do_update Update job done
18:24:32/11956/gpgoladdin.cpp:GetCustomUI_MIME: GetCustomUI_MIME for id: Microsoft.Outlook.Explorer
18:24:32/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: ribbonLoaded
18:24:32/11956/gpgoladdin.cpp:Invoke: enter with dispid: 11
18:24:32/15500/windowmessages.cpp:do_in_ui_thread: Sending message of type 1101
18:24:32/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getIsDetailsEnabled
18:24:32/11956/gpgoladdin.cpp:Invoke: enter with dispid: 13
18:24:32/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:32/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e760970'
18:24:32/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getSigLabel
18:24:32/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1b
18:24:32/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:32/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e7e9d30'
18:24:32/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: btnSigstateLarge
18:24:32/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1d
18:24:32/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:32/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e7e9470'
18:24:33/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1101
18:24:33/11956/windowmessages.cpp:gpgol_window_proc: Invalidating UI
18:24:33/11956/gpgoladdin.cpp:invalidateRibbons: Invalidating ribbon: 000002035ddb5750
18:24:33/11956/gpgoladdin.cpp:invalidateRibbons: Invalidation done.
18:24:33/11956/windowmessages.cpp:gpgol_window_proc: Invalidation done
18:24:33/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getSigLabel
18:24:33/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1b
18:24:33/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:33/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e921b60'
18:24:33/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: btnSigstateLarge
18:24:33/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1d
18:24:33/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:33/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e921b60'
18:24:33/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getIsDetailsEnabled
18:24:33/11956/gpgoladdin.cpp:Invoke: enter with dispid: 13
18:24:33/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:24:33/11956/oomhelp.cpp:get_unique_id: Found uid '3bb0889d-49b1-4644-8527-cfc0a8a52f69' for '000002035e921b60'
18:24:34/15092/cpphelp.cpp:in_de_vs_mode: Checking for de-vs mode.
18:24:34/15092/gpgoladdin.cpp:init_gpgme_config: init_gpgme_config de_vs_mode 0
18:25:16/11956/application-events.cpp:Invoke: ItemLoad event. Getting object.
18:25:16/11956/application-events.cpp:Invoke: Creating mail object for item: 000002035ea410b0
18:25:16/16324/windowmessages.cpp:do_async: Do async with type 1108 after 0 ms
18:25:16/11956/mapihelp.cpp:mapi_change_message_class: checking message class `IPM.Note'
18:25:16/11956/mapihelp.cpp:change_message_class_ipm_note: content type is 'multipart/mixed'
18:25:16/11956/mapihelp.cpp:mapi_get_body_as_stream: OpenProperty tag=83ca0102 failed: hr=0x8004010f
18:25:16/11956/mapihelp.cpp:get_msgcls_from_pgp_lines: Detected non whitespace T before a PGP Marker
18:25:16/11956/mailitem-events.cpp:Invoke: Non crypto mail 0000020350cf3560 opened. Updating sigstatus.
18:25:16/11956/mailitem-events.cpp:Invoke: Canceling write event.
18:25:16/11956/mailitem-events.cpp:Invoke: Removing Mail for message: 000002035e0f7df0.
18:25:16/11956/oomhelp.cpp:lookup_oom_dispid: error looking up dispid(Categories)=6828: hr=0x8c540108
18:25:16/11956/categorymanager.cpp:removeCategory Failed to remvoe category.
18:25:16/11956/categorymanager.cpp:unregisterCategory: Unregister category gpgol_string_1 in store gpgol_string_5 ref now 0
18:25:16/11956/categorymanager.cpp:unregisterCategory: Deleting gpgol_string_1 for store gpgol_string_5
18:25:16/11956/oomhelp.cpp:delete_category: Deleted category 'gpgol_string_1'
18:25:16/11956/parsecontroller.cpp:~ParseController
18:25:16/11956/mimedataprovider.cpp:~MimeDataProvider
18:25:16/11956/mimedataprovider.cpp:~MimeDataProvider
18:25:16/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1108
18:25:16/11956/windowmessages.cpp:gpgol_window_proc: clearing last mail
18:25:16/1544/windowmessages.cpp:do_in_ui_thread: Sending message of type 1101
18:25:16/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1101
18:25:16/11956/windowmessages.cpp:gpgol_window_proc: Invalidating UI
18:25:16/11956/gpgoladdin.cpp:invalidateRibbons: Invalidating ribbon: 000002035ddb5750
18:25:16/11956/gpgoladdin.cpp:invalidateRibbons: Invalidation done.
18:25:16/11956/windowmessages.cpp:gpgol_window_proc: Invalidation done
18:25:16/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getSigLabel
18:25:16/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1b
18:25:16/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:25:16/11956/oomhelp.cpp:get_pa_string: Property `http://schemas.microsoft.com/mapi/string/{31805AB8-3E92-11DC-879C-00061B031004}/GpgOL UID/0x0000001F' is not a string (vt=0)
18:25:16/11956/oomhelp.cpp:get_unique_id: No uuid found in oom for '000002035f0cb670'
18:25:16/11956/mapihelp.cpp:mapi_get_uid: Failed to get prop for '000002035f31b6c8'
18:25:16/11956/ribbon-callbacks.cpp:get_mail_from_control: Failed to get uid for 000002035f0cb670
18:25:16/11956/ribbon-callbacks.cpp:get_sig_label: No mail.
18:25:16/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: btnSigstateLarge
18:25:16/11956/gpgoladdin.cpp:Invoke: enter with dispid: 1d
18:25:16/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:25:16/11956/oomhelp.cpp:get_pa_string: Property `http://schemas.microsoft.com/mapi/string/{31805AB8-3E92-11DC-879C-00061B031004}/GpgOL UID/0x0000001F' is not a string (vt=0)
18:25:16/11956/oomhelp.cpp:get_unique_id: No uuid found in oom for '000002035f0cb850'
18:25:16/11956/mapihelp.cpp:mapi_get_uid: Failed to get prop for '000002035f31b6c8'
18:25:16/11956/ribbon-callbacks.cpp:get_mail_from_control: Failed to get uid for 000002035f0cb850
18:25:16/11956/gpgoladdin.cpp:GetIDsOfNames: GetIDsOfNames for: getIsDetailsEnabled
18:25:16/11956/gpgoladdin.cpp:Invoke: enter with dispid: 13
18:25:16/11956/ribbon-callbacks.cpp:getContext: contextObj: _Explorer
18:25:16/11956/oomhelp.cpp:get_pa_string: Property `http://schemas.microsoft.com/mapi/string/{31805AB8-3E92-11DC-879C-00061B031004}/GpgOL UID/0x0000001F' is not a string (vt=0)
18:25:16/11956/oomhelp.cpp:get_unique_id: No uuid found in oom for '000002035f0cb850'
18:25:16/11956/mapihelp.cpp:mapi_get_uid: Failed to get prop for '000002035f31b6c8'
18:25:16/11956/ribbon-callbacks.cpp:get_mail_from_control: Failed to get uid for 000002035f0cb850
18:25:22/11956/application-events.cpp:Invoke: ItemLoad event. Getting object.
18:25:22/11956/application-events.cpp:Invoke: Creating mail object for item: 000002035ef62ca0
18:25:22/6948/windowmessages.cpp:do_async: Do async with type 1108 after 0 ms
18:25:22/11956/mapihelp.cpp:mapi_change_message_class: checking message class `IPM.Note'
18:25:22/11956/mapihelp.cpp:change_message_class_ipm_note: content type is 'multipart/encrypted'
18:25:22/11956/mapihelp.cpp:change_message_class_ipm_note: protocol is 'application/pgp-encrypted'
18:25:22/11956/mapihelp.cpp:mapi_change_message_class: saving old message class
18:25:22/11956/ERROR/mapihelp.cpp:mapi_change_message_class: can't save old message class: hr=0x80070005
18:25:22/11956/mapihelp.cpp:mapi_create_attach_table: message has 2 attachments
18:25:22/11956/mapihelp.cpp:mapi_create_attach_table: attachment info:
18:25:22/11956/ 3435173 mt=0 fname=gpgol_string_7' ct=application/pgp-encrypted' ct_parms=`(null)'
18:25:22/11956/ 3435205 mt=0 fname=gpgol_string_8' ct=application/octet-stream' ct_parms=`(null)'
18:25:22/11956/mapihelp.cpp:mapi_mark_moss_attach: Marking 3435173 as MOSS attachment
18:25:22/11956/ERROR/mapihelp.cpp:mapi_mark_moss_attach: can't set GpgOL Attach Type property: hr=0x80070005
18:25:22/11956/mapihelp.cpp:mapi_mark_moss_attach: Marking 3435205 as MOSS attachment
18:25:22/11956/ERROR/mapihelp.cpp:mapi_mark_moss_attach: can't set GpgOL Attach Type property: hr=0x80070005
18:25:22/11956/oomhelp.cpp:put_pa_variant: failure: invoking SetProperty p=0000000000000000 vt=0 hr=0x80020009 argErr=0x0
18:25:22/11956/oomhelp.cpp:get_unique_id: failed to set uid '73470a24-55fc-4be4-8621-cc7d64ff68a0' for '000002035ef62ca0'
18:25:22/11956/mail.cpp:setUUID_o: uuid for 0000020350cf37c0 set to (null)
18:25:22/11956/mail.cpp:setUUID_o: Failed to get/set uuid for 000002035ef62ca0
18:25:22/11956/mailitem-events.cpp:Invoke: Failed to set uuid.
18:25:22/11956/windowmessages.cpp:gpgol_window_proc: Recieved user msg: 1108
18:25:22/11956/windowmessages.cpp:gpgol_window_proc: clearing last mail
18:25:22/11956/gpgoladdin.cpp:GetCustomUI_MIME: GetCustomUI_MIME for id: Microsoft.Outlook.Mail.Read
18:25:24/11956/windowmessages.cpp:gpgol_hook: Got WM_CLOSE
18:25:25/11956/windowmessages.cpp:gpgol_hook: Got WM_CLOSE
18:25:25/11956/windowmessages.cpp:gpgol_hook: WM_CLOSE windowmessage for explorer. Shutting down.
18:25:25/11956/gpgoladdin.cpp:shutdown: Releasing Application Event Sink;
18:25:25/11956/gpgoladdin.cpp:shutdown: Releasing Explorers Event Sink;
18:25:25/11956/gpgoladdin.cpp:shutdown: Releasing Explorer Event Sinks;
18:25:25/11956/storing option smimeHtmlWarnShown' value=0'
18:25:27/11956/mailitem-events.cpp:Invoke: Removing Mail for message: 000002035ea410b0.
18:25:27/11956/gpgoladdin.cpp:~GpgolRibbonExtender: cleaning up GpgolRibbonExtender object;
Perhaps, it's better to remove -no-install flag in tests/Makefile.am, so that test programs will be wrapper script by libtool.
It seems it's Ubuntu specific: https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1796563
See T4293
With GCRYCTL_AUTO_EXPAND_SECMEM we won't anymore run out of secure memory. This has even silent been backported to 1.8.x (using the numerical value of that constant) and is for long an option of gpg-agent. Thus closing.
Closing, given that we implemented a general solution; see the parent task.
I have seen no responses on your two mails to the ML and given th athere is no concrete protocol bug, I close this issue. If you can show a concrete bug please re-open this issue again.
I think that all that we can do is to improve documentation.
Apparently, it's an error from your installed /usr/local/opt/libgpg-error/lib/libgpg-error.0.dylib (you have some configuration to prefer this library), while your configure is for /usr/local/lib (because you specify no --prefix).
that error means that the message was somehow corrupted during transfer. Are you maybe using ftp in text mode on a binary message for example?
You could ask your communication partner to send you messages in text (ASCII Armor) mode which is more robust.
In Kleopatra you can change that in Settings -> Configure Kleopatra -> Crypto Operations -> Create signed or encrypted files as text files.
On the command line you need to add "--armor" option.
Dec 16 2018
Dec 14 2018
The usual reasons for corruptions of binary data are FTP transfers in text mode; or opening a file with a Windows editor.
Got another reliable report in the Wald Forum about this. https://wald.intevation.org/forum/message.php?msg_id=6371&group_id=11
Dec 13 2018
Dec 12 2018
Adding the patch here.
Thanks.
T3530 describes the solution. In short: Put "auto-expand-secmem" into gpg-agent.conf.
Dec 11 2018
Fix was released with 2.2.11
In your second run you added the options after the argument (4E2C6E8793298290) so they won't have an effect. Anyway, I can't see anything from the output. My way to debug that would be to run gpg under strace:
Dec 10 2018
The command -e does not require any further argument. As with most Unix tools you can either give a file or let the tool read from stdin or output to stdout.
In the texinfo document, which is opened, when invoking 'info gnupg', there is a subchapter called "Invoking GPG". In this chapter, commands and options are defined. This is the text I mean.
Thanks. That typo was already fixed in 2.2.7.
Hi, it's OpenPGP and the same Exchange server. Perhaps it has to do with
the "Unterhaltungsmodus" from the error message.
I'm pretty sure I tested this in the past using the Outlook.com web interface. The mails should show with an unknown attachment (the signature). I can't think of any changes recently that would have changed it. I'll check again.
Though apparently resolved back in May, this is what ultimately led to T4191 and was thus only properly resolved quite recently.
Confirmed that this is indeed fixed and made the (rather minor) change to the HOWTO that was needed. No changes were needed for the example script (decrypt-file.py).
This has now been tested on a 32-bit Gentoo VM and it behaves as expected with 32-bit system detection and creating keys with pre-2038 expirations working.
Dec 7 2018
Most options are not explained with --help. Right before the examples you see
I don't think this works for me in that way.
Use that function as early as possible. The gpg-error tool has also be enahnced on Windows:
Thanks. In the meantime GpgOL takes it's language from the Outlook configured display language setting. I'll add support for override locale to gpgol so that the locale is set accordingly
Regession due to my commit 10 days after the last release. Thus no need to do a release.
Should we close this or do you want to investigate why the segfault happened after the error?
Thanks.
I ran it with GPGME_DEBUG and it errors out at
GPGME 2018-12-07 10:34:32 <0x19c43> gpgme_op_genkey_start:293: error: Invalid argument <GPGME>
Sorry, I am still not able to replicate it:
Dec 6 2018
Can you give me a reproducer on Linux. I am not able to reproduce it. What versions of gnupg and gpgme are you using (see gpa's about)
I'll deploy one on AWS somewhere briefly once I've replaced a certain external keyboard, there will almost certainly be an existing image of some Linux distro in the AWS marketplace and I'd be very surprised if it took more than an hour or two of compute time to confirm.
I am not sure what text you reference. Can you please explain?
ImageMagick version with that regression?
Dec 5 2018
One more semantic question about how folks think Context.decrypt(verify=True) should work: if the decrypted thing has no signature at all, should the function succeed without throwing an exception? it currently does, but the returned verify_result has its signatures member set to the empty list.
Ooh, nice catch @dkg, I just stepped through each of your changes and it all looks good. I'll tweak the relevant sections of the HOWTO dealing with this in the next few days (I need to replace a keyboard here before properly diving back in) and then close this case once done.
❤
since @aheinecke merged my changes, i think this bug is now resolved. I'll let @BenM close it though :)
@aheinecke thanks for the merge of my other branch! sadly, that branch does *not* address this issue yet. It doesn't even test for it. :( I can work on trying to fix it (and test it) if there's a consensus that we want this particular change in behavior.
I apologize for the wrong report.
Files to be encrypted should be at the end of the command.
It's my mistake.
Is this fixed now?
Ben is not even subscribed to this issue.
With the volatility of gpgme-python I think that this can easily be merged. I did a quick review and it looked good to me.
Thanks! Applied.
Needs to be merged. (Note that Phabricator does not show the branch in the tooltip for commit ids.)
note that the branch also updates the test suite to make sure the verify=False case is tested.
I've just pushed a branch dkg/fix-T4271 , currently at ac8d7238dbf165950c9844e5cb41da8eb4d37bc0 that resolves this problem.
Dec 2 2018
Dec 1 2018
Nov 29 2018
Nov 28 2018
In this case the data is taken from a byte buffer, (unsigned char *). I can't see why iobuf_readbyte should be invoked here.
@gniibe there seems to be one remaining issue.
Even with iobuf_get_noeof, we have to cast to an unsigned integer before shifting 24 places to avoid undefined behavior :
diff --git a/common/iobuf.c b/common/iobuf.c index 5eeba8fe6..1b9722d0a 100644 --- a/common/iobuf.c +++ b/common/iobuf.c @@ -878,7 +878,7 @@ block_filter (void *opaque, int control, iobuf_t chain, byte * buffer, } else if (c == 255) { - a->size = iobuf_get_noeof (chain) << 24; + a->size = (size_t)iobuf_get_noeof (chain) << 24; a->size |= iobuf_get_noeof (chain) << 16; a->size |= iobuf_get_noeof (chain) << 8; if ((c = iobuf_get (chain)) == -1) ``
Regression introduced with 1.12.0.
This is a new bug, I believe, but perhaps it only appears with "broken"
S/MIME-messages of this type, So I'll first post it here:
fine with me
I'll leave the fallback to "just try to decrypt" in though because it is better then doing nothing like we did before.
Thanks, from that log I can understand the problem:
Nov 27 2018
please add a unit to the test suite to make sure something like this doesn't happen in the future!
Ok, with the beta gpgol the mail is successfully decrypted. This is the debug.log:
Nov 26 2018
You are running in a codepath that means "Outlook told us this was S/MIME, but we have not seen the proper message headers and neither does the data look like it is S/MIME."
Sadly your log does not help much in that case because it marked the mail as bad and aborts.
I've changed that "marking a mail as bad" so that future logs will be more helpful and that it will still try to treat this case as "encrypted" maybe that will already work, although I doubt it. The log will at least be a bit more helpful.
