Issue details
In AP_Filesystem_Param.cpp::open(), r.read_size does not get initialized. It should be initialized to 0. If read_size happens to have a non-zero value, ::read(fd, buf, count) will return EINVAL (lines 274-280).
Please describe the problem
Uninitialized variable. 0 is the value it should be initialized to. It manifests itself as a failure to execute a MAVFTP burst read when requested.
VersionWhat version was the issue encountered with
4.2.0dev
Platform
[x] All
[x] AntennaTracker
[x] Copter
[x] Plane
[x] Rover
[ x Submarine
Airframe typeWhat type of airframe (flying wing, glider, hex, Y6, octa etc)
N/A
Hardware typeWhat autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc)
CubeBlack and CubeOrange
LogsPlease provide a link to any relevant logs that show the issue
Bug report
Issue details In AP_Filesystem_Param.cpp::open(), r.read_size does not get initialized. It should be initialized to 0. If read_size happens to have a non-zero value, ::read(fd, buf, count) will return EINVAL (lines 274-280).
Please describe the problem Uninitialized variable. 0 is the value it should be initialized to. It manifests itself as a failure to execute a MAVFTP burst read when requested.
Version What version was the issue encountered with 4.2.0dev
Platform [x] All [x] AntennaTracker [x] Copter [x] Plane [x] Rover [ x Submarine
Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc) N/A
Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc) CubeBlack and CubeOrange
Logs Please provide a link to any relevant logs that show the issue