Skip to content

Commit f9aaa1a

Browse files
committed
Remove taint support
Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions.
1 parent aa7a295 commit f9aaa1a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/gdbm/gdbm.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ rb_gdbm_fetch(GDBM_FILE dbm, datum key)
324324

325325
str = rb_str_new(val.dptr, val.dsize);
326326
free(val.dptr);
327-
OBJ_TAINT(str);
328327
return str;
329328
}
330329

@@ -365,7 +364,6 @@ rb_gdbm_firstkey(GDBM_FILE dbm)
365364

366365
str = rb_str_new(key.dptr, key.dsize);
367366
free(key.dptr);
368-
OBJ_TAINT(str);
369367
return str;
370368
}
371369

@@ -386,7 +384,6 @@ rb_gdbm_nextkey(GDBM_FILE dbm, VALUE keystr)
386384

387385
str = rb_str_new(key2.dptr, key2.dsize);
388386
free(key2.dptr);
389-
OBJ_TAINT(str);
390387
return str;
391388
}
392389

0 commit comments

Comments
 (0)