tkchia / newlib-ia16

Fork of IA-16 port of Newlib -- added small and medium model support
GNU General Public License v2.0
13 stars 4 forks source link

Fix nano malloc #4

Closed bartoldeman closed 6 years ago

bartoldeman commented 6 years ago

These fix malloc, free & realloc in newlib for IA16.

background: I ported FreeDOS command.com (freecom) at https://sourceforge.net/p/freedos/svn/HEAD/tree/freecom/trunk/ to ia16-elf-gcc and it's a heavy malloc user. It got into very strange memory corruption errors. The reason is int/long confusion in nano_malloc & friends.