#229 Player 2.1.0rc1 libplayerc: dev_laser segmentation fault

closed
nobody
None
5
2007-12-16
2007-12-15
Paul Osmialowski
No

I've found it working with Stage so I don't know if it happens with real laser devices too. For some reason, PLAYER_LASER_REQ_SET_CONFIG request response must be checked for NULL pointer. If the response is NULL, PLAYER_LASER_REQ_GET_CONFIG request should be sent, otherwise Segmentation Fault occurs. This patch fixes that, but I'm still wondering why other devices doesn't need this NULL pointer check right after setter configuration request.

Discussion

  • player-2.1.0rc1/client_libs/libplayerc/dev_laser.c.diff

     
    Attachments
  • Logged In: NO

    I have fixed this an alternate way, values are updated from the supplied values rather than the response (which should be null)

     
  • Toby Collett
    Toby Collett
    2007-12-16

    • status: open --> closed