This bug was filed from the crash reporting server and is br-40075a0f-fe06-47d8-b3ed-df62a4caa89a. ========================================= This macro crashes LibreOffice: > Private Declare Function GetTickCount Lib "kernel32" () as Long > > sub tst > Dim time as Long > time = GetTickCount() > end sub (see https://ask.libreoffice.org/en/question/169310/how-to-call-winapi-in-64-bit-libreoffice/).
This is the error in ErrCode call() in basic/source/runtime/dllmgr-x64.cxx, where it dereferences `arguments` before checking it for nullptr (as done below, and as mentioned in a comment to SbiRuntime::DllCall()). 32-bit version of the function doesn't have this problem.
https://gerrit.libreoffice.org/62005
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=49d304c4f6635381a27b60a8944744cc81ff1e91 tdf#120706: nullptr dereference It will be available in 6.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-6-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7951138541caabcd25fccaa8f9ebb0226ce2ce12&h=libreoffice-6-1 tdf#120706: nullptr dereference It will be available in 6.1.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.