GNOME Bugzilla – Bug 789413
isomp4: atoms_recovery: Handled buffer mapping
Last modified: 2017-10-26 08:52:46 UTC
Buffer mapping failure must be handled at below code:- File: gst-plugins-good-1.12.3/gst/isomp4/atomsrecovery.c Function: atoms_recov_write_ftyp_info ... if (prefix) { GstMapInfo map; gst_buffer_map (prefix, &map, GST_MAP_READ); if (fwrite (map.data, 1, map.size, f) != map.size) { gst_buffer_unmap (prefix, &map); return FALSE; } gst_buffer_unmap (prefix, &map); } ... Failure of function gst_buffer_map must be handled.
Created attachment 362190 [details] [review] [PATCH] gst-plugins-good: atoms_recovery: Handled buffer mapping failure Please review the patch attached to fix the issue and share your feedback.
commit 1aed3948a83a810f4b0da9666dee7ea867f05309 Author: Ashish Kumar <kr.ashish@samsung.com> Date: Tue Oct 24 20:12:29 2017 +0530 gst-plugins-good: atoms_recovery: Handled buffer mapping failure https://bugzilla.gnome.org/show_bug.cgi?id=789413 Thanks for your patch. Please make sure to have gnu-indent installed on your system so that it verifies your code against the coding guidelines for the next patches.