[Libreoffice-bugs] [Bug 127648] LO on Linux crashes when accessing opend/locked File on SAMBA network share
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 30 09:40:07 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=127648
--- Comment #29 from Stephan Bergmann <sbergman at redhat.com> ---
(In reply to Theofilos Intzoglou from comment #27)
> int main(void) {
> int fd;
> struct stat statbuf;
> int res;
> char buf[4096];
>
> fd = openat(AT_FDCWD, "/mnt/disk/cv.doc", O_RDONLY);
> if (fd == -1)
> printerr();
>
> res = fstat(fd, &statbuf);
> if (res == -1)
> printerr();
> printf("st_mode=%d\nst_size=%ld\n", statbuf.st_mode, statbuf.st_size);
> res = pread64(fd, &buf, 4096, 0);
> printf("%d\n", res);
> close(fd);
> exit(0);
> }
The return type of pread64 is ssize_t, not int.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200330/ba7f0941/attachment.htm>
More information about the Libreoffice-bugs
mailing list