###### JerryScript revision
The jerryscript git submodule was apparently upgraded from 
7cc9d65c095c6631bb547d863dfeadc470d8dfc6 (good)
to
0ef9b8e0273055fabe4a4665ca9bdee509ee4202 (bad)

###### Build platform
Ubuntu 21.04 (Linux 5.8.0-33-generic s390x)

###### Build steps
```sh
sbuild -d hirsute ./iotjs-1.0+715
```

###### Build log
```
[ 46%] Building C object jerry-core/CMakeFiles/jerry-core.dir/__/jerry-all-in.c.o
In file included from /usr/include/string.h:519,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/jrt/jrt.h:20,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/ecma/base/ecma-globals.h:20,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/debugger/debugger.h:19,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/api/jerry-debugger-transport.c:16,
                 from /<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host/jerry-all-in.c:1:
In function ‘memcpy’,
    inlined from ‘parser_stack_iterator_write’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-mem.c:713:5,
    inlined from ‘parser_parse_if_statement_end’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c:870:3,
    inlined from ‘parser_parse_statements’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c:3273:15:
/usr/include/s390x-linux-gnu/bits/string_fortified.h:34:10: error: writing 16 bytes into a region of size 1 [-Werror=stringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/jcontext/jcontext.h:32,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/api/jerry-debugger-transport.c:17,
                 from /<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host/jerry-all-in.c:1:
/<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c: In function ‘parser_parse_statements’:
/<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-internal.h:317:11: note: at offset 0 to object ‘bytes’ with size 1 declared here
  317 |   uint8_t bytes[1];                           /**< memory bytes */
      |           ^~~~~
cc1: all warnings being treated as errors
make[6]: *** [jerry-core/CMakeFiles/jerry-core.dir/build.make:63: jerry-core/CMakeFiles/jerry-core.dir/__/jerry-all-in.c.o] Error 1
make[6]: Leaving directory '/<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host'
make[5]: *** [CMakeFiles/Makefile2:235: jerry-core/CMakeFiles/jerry-core.dir/all] Error 2
```

###### Test case
Give the JavaScript input that should be passed to the engine to trigger the
bug. Try and post a reduced test case that is minimally necessary to reproduce
the issue. As a rule of thumb, use Markdown's fenced code block syntax for the
test case. Attach the file (renamed to .txt) if the test case contains
'problematic' bytes that cannot be copied in the bug report directly.

###### Execution steps
Trying to build the deb package via sbuild on s390x architecture (works on other architectures).

###### Expected behavior
Jerryscript should build on  s390x as it does on other architectures.

Build fails on s390x architecture
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : Build fails on s390x architecture
Issue date:

--- start body ---
###### JerryScript revision
The jerryscript git submodule was apparently upgraded from 
7cc9d65c095c6631bb547d863dfeadc470d8dfc6 (good)
to
0ef9b8e0273055fabe4a4665ca9bdee509ee4202 (bad)

###### Build platform
Ubuntu 21.04 (Linux 5.8.0-33-generic s390x)

###### Build steps
```sh
sbuild -d hirsute ./iotjs-1.0+715
```

###### Build log
```
[ 46%] Building C object jerry-core/CMakeFiles/jerry-core.dir/__/jerry-all-in.c.o
In file included from /usr/include/string.h:519,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/jrt/jrt.h:20,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/ecma/base/ecma-globals.h:20,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/debugger/debugger.h:19,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/api/jerry-debugger-transport.c:16,
                 from /<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host/jerry-all-in.c:1:
In function ‘memcpy’,
    inlined from ‘parser_stack_iterator_write’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-mem.c:713:5,
    inlined from ‘parser_parse_if_statement_end’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c:870:3,
    inlined from ‘parser_parse_statements’ at /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c:3273:15:
/usr/include/s390x-linux-gnu/bits/string_fortified.h:34:10: error: writing 16 bytes into a region of size 1 [-Werror=stringop-overflow=]
   34 |   return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/jcontext/jcontext.h:32,
                 from /<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/api/jerry-debugger-transport.c:17,
                 from /<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host/jerry-all-in.c:1:
/<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-statm.c: In function ‘parser_parse_statements’:
/<<BUILDDIR>>/iotjs-1.0+715/deps/jerry/jerry-core/parser/js/js-parser-internal.h:317:11: note: at offset 0 to object ‘bytes’ with size 1 declared here
  317 |   uint8_t bytes[1];                           /**< memory bytes */
      |           ^~~~~
cc1: all warnings being treated as errors
make[6]: *** [jerry-core/CMakeFiles/jerry-core.dir/build.make:63: jerry-core/CMakeFiles/jerry-core.dir/__/jerry-all-in.c.o] Error 1
make[6]: Leaving directory '/<<BUILDDIR>>/iotjs-1.0+715/obj-s390x-linux-gnu/deps/jerry-host'
make[5]: *** [CMakeFiles/Makefile2:235: jerry-core/CMakeFiles/jerry-core.dir/all] Error 2
```

###### Test case
Give the JavaScript input that should be passed to the engine to trigger the
bug. Try and post a reduced test case that is minimally necessary to reproduce
the issue. As a rule of thumb, use Markdown's fenced code block syntax for the
test case. Attach the file (renamed to .txt) if the test case contains
'problematic' bytes that cannot be copied in the bug report directly.

###### Execution steps
Trying to build the deb package via sbuild on s390x architecture (works on other architectures).

###### Expected behavior
Jerryscript should build on  s390x as it does on other architectures.

--- end body ---

The issue indicates a build failure on the s390x architecture due to a potential buffer overflow in the JerryScript codebase. The error arises from an attempt to write 16 bytes into a memory region that is only 1 byte in size, which can lead to undefined behavior and potential security vulnerabilities if exploited. This is a critical issue that needs to be addressed to ensure the stability and security of the software on the s390x architecture.