GNOME Bugzilla – Bug 739428
webdav should use g_try_realloc
Last modified: 2014-11-04 21:59:55 UTC
The webdav backend should use g_try_realloc to prevent aborts with large output streams.
Created attachment 289699 [details] [review] dav: Use g_try_realloc for output streams When writing a large amount to a GMemoryOutputStream, the reallocation function can fail. Use g_try_realloc so that failures generate G_IO_ERROR_NO_SPACE rather than abort the process (as happens with g_realloc).
Review of attachment 289699 [details] [review]: It looks pretty good, thanks!
Pushed to master as 50bb750fe9bcae0d333a1ec40a5d161ab6ba1741. Thanks for the review!