Gathiyo / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

bug in GCS_MAVLINK::send_text #297

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Arducoper 2.0.55, Ardupilot Mega + Oilspan IMU

GCS_Mavlink.pde: line 672, method
GCS_MAVLINK::send_text(gcs_severity severity, const prog_char_t *str)

there is loop w/o checking for end of line (0 for C strings),

should be something like

    int8_t c;

    for (i=0; i<sizeof(m.text); i++) {
        c = pgm_read_byte((const prog_char *)(str++));
        if (!c)
          break;
        m.text[i] = c;
    }

Original issue reported on code.google.com by evgeny.s...@gmail.com on 6 Dec 2011 at 2:17

GoogleCodeExporter commented 8 years ago

Original comment by jasonshort on 12 Dec 2011 at 6:47

GoogleCodeExporter commented 8 years ago
Closing all issues on the old issues list and marking them WontFix 'cuz I don't 
want to mark them as "done"

Original comment by rmackay...@gmail.com on 21 Jul 2013 at 2:11