[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there an off-by-1 bug in notification callbacks?
From: |
Samuel Thibault |
Subject: |
Re: Is there an off-by-1 bug in notification callbacks? |
Date: |
Wed, 19 Aug 2020 17:52:45 +0200 |
User-agent: |
NeoMutt/20170609 (1.8.3) |
Nolan Darilek, le mer. 19 août 2020 10:38:56 -0500, a ecrit:
> OK, sort of figured it out--I'm not strong in the C. :) Looks like the state
> parameter is the index into the enum values, not the value itself.
It's not the index, it's the binary weight
> I.e. cancel notifications send 3, the index of SPD_NOTIFICATION_CANCEL
> in the enum, rather than the value which is 8.
8 == 1<<3
Samuel
- Is there an off-by-1 bug in notification callbacks?, Nolan Darilek, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Nolan Darilek, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?,
Samuel Thibault <=
- Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Nolan Darilek, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Nolan Darilek, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Nolan Darilek, 2020/08/19
- Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19
Re: Is there an off-by-1 bug in notification callbacks?, Samuel Thibault, 2020/08/19