Omnimaga
General Discussion => Technology and Development => Web Programming and Design => Topic started by: compu on May 02, 2011, 03:20:31 pm
-
I made a small tool that lets you upload a zip archive containing source code of an nspire program and compiles it.
You can modify the EXE and OBJS variables in the makefile to whatever you want.
http://compu.vortexirc.com/compiler/ (http://compu.vortexirc.com/compiler/)
It uses arm-elf-gcc 4.4.6 because I have problems to get 4.5 to work.
__builtin_unreachable() was added in 4.5 so you will always get a warning:
/home/julian/ndless/include/os.h: In function 'exit':
/home/julian/ndless/include/os.h:389: warning: implicit declaration of function '__builtin_unreachable'
-
Hmm nice, is this for ASM and C or Lua?
-
At the moment, only C is supported, but it is easy to add Asm.
-
What OS is the server running? (for arm-elf-gcc)
-
Debian with Linux Kernel 2.6.18.
-
Letting anyone run arbitrary commands on your server isn't a bit risky? Or are there any filter mechanisms?
-
PHP has a filter function called escapeshellcmd() that will filter all |, ;, etc. out.
-
Couldn't you still run arbitrary commands by changing nspire-gcc in the makefile to anything you want?
-
Probably, unless he uses REGEX to filter out non-GCC calls.
-
Compu, I get "404 - Not Found" on the webpage.
-
Compu, I get "404 - Not Found" on the webpage.
Yes, I have accidentally moved the directory, I will fix it as soon as possible ;)