1. 24 4月, 2012 5 次提交
    • R
      sync case mappings with unicode 6.1 · 1a63a9fc
      Rich Felker 提交于
      also special-case ß (U+00DF) as lowercase even though it does not have
      a mapping to uppercase. unicode added an uppercase version of this
      character but does not map it, presumably because the uppercase
      version is not actually used except for some obscure purpose...
      1a63a9fc
    • R
      optimize iswprint · 38b5d7d0
      Rich Felker 提交于
      38b5d7d0
    • R
      fix spurious punct class for some surrogate codepoints (invalid) · 640fe75c
      Rich Felker 提交于
      this happened due to their entries in UnicodeData.txt
      640fe75c
    • R
      destubify iswalpha and update iswpunct to unicode 6.1 · 7e38b1ea
      Rich Felker 提交于
      alpha is defined as unicode property "Alphabetic" plus category Nd
      minus ASCII digits minus 2 special-cased Thai punctuation marks
      supposedly misclassified by Unicode as letters.
      
      punct is defined as all of unicode except control, alphanumeric, and
      space characters.
      
      the tables were generated by a simple tool based on the code posted
      previously to the mailing list. in the future, this and other code
      used for maintaining locale/iconv/i18n data will be published either
      in the main source repository or in a separate locale data generation
      repository.
      7e38b1ea
    • R
      make dlerror produce informative results · a5d10eb1
      Rich Felker 提交于
      note that dlerror is specified to be non-thread-safe, so no locking is
      performed on the error flag or message aside from the rwlock already
      held by dlopen or dlsym. if 2 invocations of dlsym are generating
      errors at the same time, they could clobber each other's results, but
      the resulting string, albeit corrupt, will still be null-terminated.
      any use of dlerror in such a situation could not be expected to give
      meaningful results anyway.
      a5d10eb1
  2. 23 4月, 2012 4 次提交
  3. 22 4月, 2012 6 次提交
  4. 21 4月, 2012 2 次提交
  5. 20 4月, 2012 3 次提交
  6. 19 4月, 2012 2 次提交
  7. 18 4月, 2012 14 次提交
  8. 17 4月, 2012 4 次提交
    • R
      avoid null pointer dereference on %*p fields in scanf · 03de77f5
      Rich Felker 提交于
      03de77f5
    • R
      also ensure that write buffer is bounded when __stdio_write returns · b7a27617
      Rich Felker 提交于
      assuming other code is correct, this should be a no-op, but better to
      be safe...
      b7a27617
    • R
      fix buffer overflow in vfprintf on long writes to unbuffered files · b5a8b289
      Rich Felker 提交于
      vfprintf temporarily swaps in a local buffer (for the duration of the
      operation) when the target stream is unbuffered; this both simplifies
      the implementation of functions like dprintf (they don't need their
      own buffers) and eliminates the pathologically bad performance of
      writing the formatted output with one or more write syscalls per
      formatting field.
      
      in cases like dprintf where we are dealing with a virgin FILE
      structure, everything worked correctly. however for long-lived files
      (like stderr), it's possible that the buffer bounds were already set
      for the internal zero-size buffer. on the next write, __stdio_write
      would pick up and use the new buffer provided by vfprintf, but the
      bound (wend) field was still pointing at the internal zero-size
      buffer's end. this in turn allowed unbounded writes to the temporary
      buffer.
      b5a8b289
    • R
      fix %lf, etc. with printf · cc3a4466
      Rich Felker 提交于
      the l prefix is redundant/no-op with printf, since default promotions
      always promote floats to double; however, it is valid, and printf was
      wrongly rejecting it.
      cc3a4466