* Adding checks for get_upload functions
Almost in every protocol, function which generates upload might fail and return false.
But we don't check this result, which might end up sending random memory contents to the air.
* Format sources and fix crash on ivalid bit count in chamberlain
Co-authored-by: あく <alleteam@gmail.com>