Skip to content

Commit 8c9fa48

Browse files
committed
Fix undefined behaviour.
* tests/test-shiftseq.c (main2): Make input array larger.
1 parent dc461c4 commit 8c9fa48

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2022-04-13 Bruno Haible <bruno@clisp.org>
2+
3+
Fix undefined behaviour.
4+
* tests/test-shiftseq.c (main2): Make input array larger.
5+
16
2022-02-12 Bruno Haible <bruno@clisp.org>
27

38
Update translations.

tests/test-shiftseq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (C) 2008, 2018 Free Software Foundation, Inc.
1+
/* Copyright (C) 2008, 2018, 2022 Free Software Foundation, Inc.
22
This file is part of the GNU LIBICONV Library.
33
44
The GNU LIBICONV Library is free software; you can redistribute it
@@ -64,7 +64,7 @@ void main1 (void)
6464

6565
void main2 (void)
6666
{
67-
static const char input[] = "+2D/YQNhB";
67+
static const char input[20] = "+2D/YQNhB";
6868
iconv_t cd;
6969
char buf[20];
7070

0 commit comments

Comments
 (0)