@@ -35,7 +35,7 @@ typedef struct {
3535} lua_userdata_t ;
3636
3737/* Consumes a string from the fuzzer input. */
38- static int
38+ NO_SANITIZE static int
3939luaL_consume_string (lua_State *L)
4040{
4141 lua_userdata_t *lfdp;
@@ -52,7 +52,7 @@ luaL_consume_string(lua_State *L)
5252}
5353
5454/* Consumes a table with specified number of strings from the fuzzer input. */
55- static int
55+ NO_SANITIZE static int
5656luaL_consume_strings (lua_State *L)
5757{
5858 lua_userdata_t *lfdp;
@@ -78,7 +78,7 @@ luaL_consume_strings(lua_State *L)
7878}
7979
8080/* Consumes a boolean from the fuzzer input. */
81- static int
81+ NO_SANITIZE static int
8282luaL_consume_boolean (lua_State *L)
8383{
8484 lua_userdata_t *lfdp;
@@ -93,7 +93,7 @@ luaL_consume_boolean(lua_State *L)
9393}
9494
9595/* Consumes a table with specified number of booleans from the fuzzer input. */
96- static int
96+ NO_SANITIZE static int
9797luaL_consume_booleans (lua_State *L)
9898{
9999 lua_userdata_t *lfdp;
@@ -114,7 +114,7 @@ luaL_consume_booleans(lua_State *L)
114114}
115115
116116/* Consumes a float from the fuzzer input. */
117- static int
117+ NO_SANITIZE static int
118118luaL_consume_number (lua_State *L)
119119{
120120 lua_userdata_t *lfdp;
@@ -133,7 +133,7 @@ luaL_consume_number(lua_State *L)
133133}
134134
135135/* Consumes a table with specified number of numbers from the fuzzer input. */
136- static int
136+ NO_SANITIZE static int
137137luaL_consume_numbers (lua_State *L)
138138{
139139 lua_userdata_t *lfdp;
@@ -159,7 +159,7 @@ luaL_consume_numbers(lua_State *L)
159159
160160/* Consumes an arbitrary int or an int between min and max from the fuzzer
161161 input. */
162- static int
162+ NO_SANITIZE static int
163163luaL_consume_integer (lua_State *L)
164164{
165165 lua_userdata_t *lfdp;
@@ -178,7 +178,7 @@ luaL_consume_integer(lua_State *L)
178178}
179179
180180/* Consumes an int array from the fuzzer input. */
181- static int
181+ NO_SANITIZE static int
182182luaL_consume_integers (lua_State *L)
183183{
184184 lua_userdata_t *lfdp;
@@ -202,7 +202,7 @@ luaL_consume_integers(lua_State *L)
202202 return 1 ;
203203}
204204
205- static int
205+ NO_SANITIZE static int
206206luaL_consume_probability (lua_State *L)
207207{
208208 lua_userdata_t *lfdp;
@@ -217,7 +217,7 @@ luaL_consume_probability(lua_State *L)
217217}
218218
219219/* Returns the number of unconsumed bytes in the fuzzer input. */
220- static int
220+ NO_SANITIZE static int
221221luaL_remaining_bytes (lua_State *L)
222222{
223223 lua_userdata_t *lfdp;
@@ -231,15 +231,15 @@ luaL_remaining_bytes(lua_State *L)
231231 return 1 ;
232232}
233233
234- static int close (lua_State *L) {
234+ NO_SANITIZE static int close (lua_State *L) {
235235 lua_userdata_t *lfdp;
236236 lfdp = (lua_userdata_t *)luaL_checkudata (L, 1 , FDP_LUA_UDATA_NAME);
237237 delete lfdp->fdp ;
238238
239239 return 0 ;
240240}
241241
242- static int tostring (lua_State *L) {
242+ NO_SANITIZE static int tostring (lua_State *L) {
243243 lua_pushstring (L, " FuzzedDataProvider" );
244244 return 1 ;
245245}
@@ -280,7 +280,7 @@ fdp_metatable_init(lua_State *L)
280280 lua_pop (L, 1 ); /* Remove the metatable from the stack. */
281281}
282282
283- int
283+ NO_SANITIZE int
284284luaL_fuzzed_data_provider (lua_State *L)
285285{
286286 int index = lua_gettop (L);
0 commit comments