Commit graph

23 commits

Author SHA1 Message Date
Steel Titanium
9b180acdd7 Make "divide by zero" or "modulo by zero" errors show the file and line of where it happened
Shouldn't break scripts as it stops execution as soon it happens, like it already does.
2020-09-14 23:01:47 -04:00
Latapostrophe
392b24b769 Merge remote-tracking branch 'stjr/io' into kart-io 2020-08-17 20:22:02 +02:00
Monster Iestyn
11cb163435 Backport the Blockmap library I made two years ago 2018-11-30 17:11:11 +00:00
Alam Ed Arias
2ccd397d11 Build: kill GCC 7's implicit-fallthrough warning 2017-09-28 09:39:47 -04:00
Alam Ed Arias
2c8008e11e NULL checks 2016-06-13 10:07:10 -04:00
Alam Ed Arias
209d76cb9d gcc-6: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 2016-05-28 21:24:06 -04:00
Alam Ed Arias
35f36e1bba travis-ci: set v of nulK to 0 2016-05-28 19:28:37 -04:00
wolfy852
db7da456d2 Remove block on % in filename strings
According to Alam, supporting this shouldn't cause any issues.
2016-01-29 01:38:41 -06:00
Monster Iestyn
2eedecb93a Get rid of unneeded tab spaces
Least I can do to make up for breaking io.open in the first place :E
2016-01-26 12:07:28 +00:00
Nipples the Enchilada
9c299e5ad4 Fix and clean up io_open after MI broke it horribly
strcpy(NULL, filename); congrats
2016-01-25 22:13:24 -06:00
Monster Iestyn
14dcd2404b Fixed compiler warnings to the best of my ability
Hopefully this all still works properly, try not to kill me if it doesn't =V
2016-01-25 22:12:54 -06:00
wolfy852
591b803566 Limit file write size to 1MB
If the total file size is above 1MB after writing, discard all changes.
2016-01-22 21:45:48 -06:00
wolfy852
e274946528 Call I_mkdir on subdirectories [NEEDS CLEANUP]
I got lazy and used a weird inefficient method, but I don't know how to clean this mess up :c At least it works.
2016-01-22 00:46:32 -06:00
wolfy852
5579fb5240 Limit file creation/manipulation to luafiles subfolder
Also block % in filename strings
2016-01-20 22:35:53 -06:00
wolfy852
de03db99e7 Block possible methods of accessing folders outside of SRB2 2016-01-20 21:31:00 -06:00
wolfy852
569f7d15d1 Efficiency improvement in whitelist check
Thanks Inu!
2016-01-20 16:59:55 -06:00
wolfy852
a68e92690f Implement file type whitelist, completely remove popen and pclose
This is probably super inefficient. Someone please teach me how2C.
2016-01-20 02:26:15 -06:00
wolfy852
c9fe83b95d Block the use of ../ and ..\\
...and remove io.popen(), cause that shit is DANGEROUS.
2016-01-17 01:37:19 -06:00
wolfy852
eb7c36d72c Reimplement I/O library
Note: I/O library is fully functioning in this state, but lacks security restrictions. We'll get to those later ;)
2016-01-16 19:31:36 -06:00
Yukita Mayako
120c9c5ad5 Change int32_t to __int32 on MSC.
I can't just say screw it and include the full
doomtype.h here (windows.h conflict?) so a
small hack here will have to do. :I
2015-06-10 07:41:44 -04:00
JTE
ef0e61fc33 Change LUA_NUMBER to fixed_t, change angle_t handling in Lua.
Angles now go from 0 to 0xFFFF (360 degrees == FRACUNIT) instead
of using a full UINT32. Lua only has one number type, so signedness
gets in the way of using angle_t directly. This handling of angles
matches up with how ZDoom ACS scripting and the like does it.

I also changed all the integer casts and pushes of fixed_t to
their own macro in preperation for possible future seperation.
2015-05-20 23:54:04 -04:00
Alam Ed Arias
404b5f666c SRB2 2.1.12 release 2014-11-11 19:55:07 -05:00
Alam Ed Arias
b93cb1b65a SRB2 2.1 release 2014-03-15 13:11:35 -04:00