Joe Orton de1cf63d26 Fix GCC warning in msc_headers_to_buffer():
In file included from /usr/include/stdio.h:970,
                 from modsecurity.h:18,
                 from msc_util.c:15:
In function 'sprintf',
    inlined from 'msc_headers_to_buffer' at msc_util.c:2331:17:
/usr/include/bits/stdio2.h:30:10: warning: '__sprintf_chk' argument 5 overlaps destination object 'buffer' [-Wrestrict]
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
msc_util.c: In function 'msc_headers_to_buffer':
msc_util.c:2306:64: note: destination object referenced by 'restrict'-qualified argument 1 was declared here
 2306 | int msc_headers_to_buffer(const apr_array_header_t *arr, char *buffer,
      |                                                          ~~~~~~^~~~~~
2025-05-16 09:59:32 +01:00
2013-12-13 09:44:51 -08:00
2024-02-25 20:28:12 +01:00
2022-11-08 13:04:27 -08:00
2016-01-29 11:59:52 -03:00
2024-05-29 14:26:27 -03:00
2010-10-14 16:23:45 +00:00
2024-10-03 12:59:48 +02:00
2024-04-04 15:45:55 +02:00
2013-04-19 03:20:46 -04:00
2024-05-23 09:44:22 -03:00

ModSecurity 2

https://www.modsecurity.org/

Copyright (c) 2004-2024 Trustwave Holdings, Inc. (https://www.trustwave.com/) Copyright (c) 2024-2024 OWASP ModSecurity Project (https://www.owasp.org/)

You may not use this file except in compliance with the License. You may obtain a copy of the License at: https://www.apache.org/licenses/LICENSE-2.0

If any of the files related to licensing are missing or if you have any other questions related to licensing please contact us here: modsecurity@owasp.org.

Documentation

Please refer to: the documentation folder for the reference manual.

Sponsor Note

Original Development of ModSecurity was sponsored by Trustwave. In 2024, stewardship was transferred to OWASP.

Contact us for sponsorship!

You can also send us donations using the OWASP donations page.

Languages
C++ 89.1%
M4 4.8%
LLVM 4.1%
Makefile 0.7%
CMake 0.5%
Other 0.8%