Changeset 2521


Ignore:
Timestamp:
Feb 5, 2006, 12:05:24 AM (19 years ago)
Author:
bird
Message:

o #38: Fixed truncation bug writing to the LX nametable. Imports and exports are limited to 255 not 127 chars. (Yuri)

Location:
branches/libc-0.6/src/emx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2519 r2521  
    44
    552006-02-04: knut st. osmundsen <bird-gccos2-spam@anduin.net>
     6    - emxbind:
     7        o #38: Fixed truncation bug writing to the LX nametable. (Yuri)
     8        o #38: Imports and exports are limited to 255 not 127 chars. (Yuri)
    69    - emxomfld:
    710        o #34: Removed all the silliness trying to deal with truncated symbols.
  • TabularUnified branches/libc-0.6/src/emx/src/emxbind/emxbind.h

    r2300 r2521  
    519519
    520520void error (const char *fmt, ...) NORETURN2;
     521void warning (const char *fmt, ...);
    521522void my_read (void *dst, size_t size, struct file *f);
    522523void my_read_str (byte *dst, size_t size, struct file *f);
  • TabularUnified branches/libc-0.6/src/emx/src/emxbind/export.c

    r1333 r2521  
    7676
    7777  name_len = strlen (name);
    78   if (name_len >= 128)
    79     name_len = 127;
     78  if (name_len > 255)
     79    {
     80      warning("truncating export '%s' to 255 chars (ord %d)!", name, ord);
     81      blen = 255;
     82    }
    8083  else
    8184    blen = (byte)name_len;
  • TabularUnified branches/libc-0.6/src/emx/src/emxbind/fixup.c

    r828 r2521  
    285285
    286286  name_len = strlen (name);
    287   if (name_len >= 128)
    288     name_len = 127;
    289287  i = 0;
    290288  while (i < procs.len)
  • TabularUnified branches/libc-0.6/src/emx/src/emxbind/utils.c

    r18 r2521  
    4949  exit (2);
    5050}
     51
     52
     53/* Print an warning message. This function is called like  printf().
     54   The message will be prefixed with  "emxbind: warning: " and a
     55   newline will be added at the end. */
     56
     57void warning (const char *fmt, ...)
     58{
     59  va_list arg_ptr;
     60
     61  va_start (arg_ptr, fmt);
     62  fprintf (stderr, "emxbind: warning: ");
     63  vfprintf (stderr, fmt, arg_ptr);
     64  fputc ('\n', stderr);
     65}
     66
    5167
    5268/* Print an out of memory message and abort. */
Note: See TracChangeset for help on using the changeset viewer.