Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit503e8f6

Browse files
author
Felipe Zimmerle
committed
Updates the libinjection
Windows compilation was failing due to the utilization of size_t which is partof the strings.h. strings.h was not part of windows and so the compilationwas failing. This update fix that. Issuemicrosoft#65 on libinjection:client9/libinjection#65
1 parent66939d0 commit503e8f6

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

‎apache2/libinjection/libinjection.h‎

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@
1111
#define_LIBINJECTION_H
1212

1313
#ifdef__cplusplus
14-
extern"C" {
14+
# defineLIBINJECTION_BEGIN_DECLS extern "C" {
15+
# defineLIBINJECTION_END_DECLS }
16+
#else
17+
# defineLIBINJECTION_BEGIN_DECLS
18+
# defineLIBINJECTION_END_DECLS
1519
#endif
1620

21+
LIBINJECTION_BEGIN_DECLS
22+
1723
/*
1824
* Pull in size_t
1925
*/
@@ -43,8 +49,17 @@ const char* libinjection_version(void);
4349
*/
4450
intlibinjection_sqli(constchar*s,size_tslen,charfingerprint[]);
4551

46-
#ifdef__cplusplus
47-
}
48-
#endif
52+
/** ALPHA version of xss detector.
53+
*
54+
* NOT DONE.
55+
*
56+
* \param[in] s input string, may contain nulls, does not need to be null-terminated
57+
* \param[in] slen input string length
58+
* \return 1 if XSS found, 0 if benign
59+
*
60+
*/
61+
intlibinjection_xss(constchar*s,size_tslen);
62+
63+
LIBINJECTION_END_DECLS
4964

5065
#endif/* _LIBINJECTION_H */

‎apache2/libinjection/libinjection_html5.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern "C" {
77

88
/* pull in size_t */
99

10-
#include<strings.h>
10+
#include<stddef.h>
1111

1212
enumhtml5_type {
1313
DATA_TEXT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp