Bug 129519

Summary: Crash when using two or more documents from the same WebDAV server
Product: LibreOffice Reporter: Thorsten Behrens (allotropia) <thb>
Component: LibreOfficeAssignee: Thorsten Behrens (allotropia) <thb>
Status: RESOLVED FIXED    
Severity: normal CC: aron.budea, oliver.brinzing
Priority: medium    
Version: 6.0.0.3 release   
Hardware: All   
OS: Windows (All)   
Whiteboard: target:6.5.0 target:6.4.0.2 target:6.3.5
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 117073    
Attachments: Backtrace

Description Thorsten Behrens (allotropia) 2019-12-20 14:44:07 UTC
Open more than one document from the same WebDAV server. Set session timeout to something small enough, wait for timeout to hit.

First document will then invalidate session in ah_post_send, second document crash while accessing nullptr below auth_challenge().

The code is windows-only, change came into neon library via:

r1856 | joe | 2011-09-18 21:58:06 +0200 (Sun, 18 Sep 2011) | 3 lines

* src/ne_auth.c (continue_sspi, auth_register): Use the proxy hostname
  for proxy auth with SSPI.
Comment 1 Thorsten Behrens (allotropia) 2019-12-20 15:01:18 UTC
Created attachment 156695 [details]
Backtrace
Comment 2 Commit Notification 2019-12-20 21:09:21 UTC
Thorsten Behrens committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/df52a213277827a16793791fecc33139582c84c2

tdf#129519 Fix crash during WebDAV lock refresh

It will be available in 6.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2019-12-21 08:33:51 UTC
Thorsten Behrens committed a patch related to this issue.
It has been pushed to "libreoffice-6-4":

https://git.libreoffice.org/core/commit/da9a2f68b5b7d17c0d066f2221f16ea443f2b9d5

tdf#129519 Fix crash during WebDAV lock refresh

It will be available in 6.4.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2020-01-08 11:19:12 UTC
Thorsten Behrens committed a patch related to this issue.
It has been pushed to "libreoffice-6-3":

https://git.libreoffice.org/core/commit/4d9305d0645bd73916d21894ad86ee5260a8d240

tdf#129519 Fix crash during WebDAV lock refresh

It will be available in 6.3.5.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.