~nitrokey/nitrokey/+git/libnitrokey:master

Last commit made on 2023-08-17
Get this branch:
git clone -b master https://git.launchpad.net/~nitrokey/nitrokey/+git/libnitrokey

Branch merges

Branch information

Name:
master
Repository:
lp:~nitrokey/nitrokey/+git/libnitrokey

Recent commits

8349374... by Szczepan

Update Pipfile for tests

b34a473... by Szczepan Zalega <email address hidden>

Merge pull request #221 from mmerklinger/usb-doc-update

Change usb ids documentation reference

131791a... by Markus Merklinger <email address hidden>

Change usb ids documentation reference

9fbaaa9... by Szczepan

Merge branch 'usb-device-ids'

Fixes https://github.com/Nitrokey/libnitrokey/pull/219

b355483... by Markus Merklinger <email address hidden>

Change names of USB device ids in udev rules files

eaf6c88... by Markus Merklinger <email address hidden>

Change names of USB device ids in README file

a82aa1e... by Szczepan

Merge branch '214-do-not-return-local-stack-address'

Use static string object for keeping the c_str message for the caller.
Strings collection used as an alternative to memory leaks done via strdup().
To add, TargetBufferSmallerThanSource Exception should never happen in a correctly written library client, as this completely depends on the implementation and not on the communication with the device

Downside: if missed and when occurring too often, the memory taken by the exception messages can take too much memory.
Potential improvement: replace std::vector with a kind of a ring buffer, or add simple wrapping logic over it.

This should avoid breaking ABI by using static memory. Note: there might be multiple exceptions' strings collections (for each compilation unit including this header).
Correct that for libnitrokey 4, by keeping string as a member of the exception.

Fixes #214
Fixes #217

b740cb4... by Szczepan

Fix missing bracket

7b9e076... by Szczepan

Make static collection of strings to keep rare exception messages

Fixes https://github.com/Nitrokey/libnitrokey/issues/214

0378956... by Szczepan

Merge branch 'fix-meson-build'

Fix build with meson >= 0.60.0

Fixes https://github.com/Nitrokey/libnitrokey/pull/215