Skip to content

Conversation

@juliusknorr
Copy link
Member

This makes sure that when fseek fails and we iterate over a file with fread in order to get to the requested chunk, the manual seek doesn't error by trying to read 0 bytes when the expected from position is reached.

Should fix occurences of: fread(): Length parameter must be greater than 0 at /var/www/nextcloud/lib/private/Files/View.php#460

@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Feb 26, 2021
@juliusknorr juliusknorr added this to the Nextcloud 22 milestone Feb 26, 2021
@rullzer rullzer merged commit 91f260f into master Mar 1, 2021
@rullzer rullzer deleted the bugfix/noid/fread-0 branch March 1, 2021 08:54
@MorrisJobke
Copy link
Member

@juliushaertl @rullzer @ChristophWurst Backport to at least stable21?

@rullzer
Copy link
Member

rullzer commented Mar 30, 2021

/backport to stable21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants