Re: openconnect-8.0[568] on Solaris dumps core in print_supported_protocols_usage (main.c:674)

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

 



On Mon, Apr 20, 2020 at 11:05 AM David Woodhouse <dwmw2@xxxxxxxxxxxxx> wrote:
> Shows up if you run in valgrind though:

Yes indeed. Wondering if there's a simple way to add automated
valgrind testing à la Coverity.

> > I've created a MR to properly fix this:
> > https://gitlab.com/openconnect/openconnect/-/merge_requests/94
>
> Nah, if openconnect_get_supported_protocols() originally returned an
> array with the sentinel included, then that is its ABI. We broke that.

Right. I was thinking we might get away with it due to the small
number of (known) users, but not worth it.

> Fixing up our own usage of that ABI doesn't actually excuse changing
> the ABI. And yes, one of the two callers in NetworkManager-openconnect
> does depend on the sentinel. We have to put it back.

Makes sense. Will update the MR.

> I think we *can* get away with returning the correct value (e.g. 4 now)
> rather than the 5 we used to return before commit 7cb8996e21. Even
> though that's strictly an ABI change it shoujld be OK.

Agreed, that was basically an off-by-1 bug by me. Hopefully no one is
has reclassified it as an off-by-1 feature. :-P

Dan

_______________________________________________
openconnect-devel mailing list
openconnect-devel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/openconnect-devel




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux