paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [paparazzi/paparazzi] 34e5f8: [abi] fix endless loop


From: GitHub
Subject: [paparazzi-commits] [paparazzi/paparazzi] 34e5f8: [abi] fix endless loop if AbiBindMsgX is called tw...
Date: Wed, 02 Nov 2016 14:40:00 -0700

  Branch: refs/heads/master
  Home:   https://github.com/paparazzi/paparazzi
  Commit: 34e5f801d412cb4df73e83d00739d1a3f55f41c4
      
https://github.com/paparazzi/paparazzi/commit/34e5f801d412cb4df73e83d00739d1a3f55f41c4
  Author: Felix Ruess <address@hidden>
  Date:   2016-11-02 (Wed, 02 Nov 2016)

  Changed paths:
    M sw/tools/generators/gen_abi.ml

  Log Message:
  -----------
  [abi] fix endless loop if AbiBindMsgX is called twice for same event (#1925)

AbiBindMsgX should be called only once per abi_event struct.
Regardless, this tries to make it a bit more robust if you re-use the same 
abi_event for consecutive AbiBindMsgX calls:
If AbiBindMsgX is called multiple times _consecutively_, the event/callback is 
now only added if it is different from the last one added...
This should at least fix the endless loop since the event->next can't point to 
itself anymore...

Should fix #1924 in a rudimentary way... but would still be possible to bind 
multiple times using the same abi_event if another bind for the same message 
happens in between.
Bottom line: make sure that your code doesn't call AbiBindMsg with the same 
abi_event struct multiple times!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]