Репозитории ALT
S: | 0.23.0-alt2 |
5.1: | 0.11.9-alt3 |
4.1: | 0.11.6-alt0.M41.1 |
4.0: | 0.11.6-alt0.M40.1 |
3.0: | 0.8.1-alt4.1 |
Группа :: Система/Настройка/Оборудование
Пакет: opensc
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: opensc-gcc11.patch
Скачать
Скачать
diff --git a/src/tools/opensc-explorer.c b/src/tools/opensc-explorer.c
index 41e620a..57f8a79 100644
--- a/src/tools/opensc-explorer.c
+++ b/src/tools/opensc-explorer.c
@@ -1839,6 +1839,12 @@ static int do_apdu(int argc, char **argv)
if (argc < 1)
return usage(do_apdu);
+ /* gcc-11 complains about BUF potentially being used without being
+ initialized. I can't convince myself that the calls to
+ parse_string_or_hexdata will fully initialize it, so we just
+ initialize it here. */
+ memset (buf, 0, sizeof (buf));
+
/* loop over the args and parse them, making sure the result fits into buf[] */
for (i = 0, len = 0; i < (unsigned) argc && len < sizeof(buf); i++) {
size_t len0 = sizeof(buf) - len;