1. 21 9月, 2018 5 次提交
    • F
    • F
      Provide way for ui tests to opt out of having their output checked. · d28c5baf
      Felix S. Klock II 提交于
      Namely, this adds support for:
      
       * `// dont-check-compiler-stdout`, and
       * `// dont-check-compiler-stderr`.
      
      Obviously almost all ui tests wont want to opt into these, since the whole point
      of a ui test is to check the compiler ui. However, since this PR is converting
      run-pass into (another set of) ui tests, these header options make sense in that
      context.
      
      (Also this puts us into a better position for eventually turning
      *every* test suite into a ui test suite, by making ui-ness the default
      and forcing tests to opt out explicitly.)
      d28c5baf
    • F
      Support `// skip-codegen` in header of ui tests · ae0a53a3
      Felix S. Klock II 提交于
      (just like how they behaved under previous run-pass semantics)
      ae0a53a3
    • F
    • A
      std: Check for overflow in `str::repeat` · 8ac88d37
      Alex Crichton 提交于
      This commit fixes a buffer overflow issue in the standard library
      discovered by Scott McMurray where if a large number was passed to
      `str::repeat` it may cause and out of bounds write to the buffer of a `Vec`.
      This bug was accidentally introduced in #48657 when optimizing the
      `str::repeat` function. The bug affects stable Rust releases 1.26.0 to
      1.29.0. We plan on backporting this fix to create a 1.29.1 release, and
      the 1.30.0 release onwards will include this fix.
      
      The fix in this commit is to introduce a deterministic panic in the case of
      capacity overflow. When repeating a slice where the resulting length is larger
      than the address space, there’s no way it can succeed anyway!
      
      The standard library and surrounding libraries were briefly checked to see if
      there were othere instances of preallocating a vector with a calculation that
      may overflow. No instances of this bug (out of bounds write due to a calculation
      overflow) were found at this time.
      
      Note that this commit is the first steps towards fixing this issue,
      we'll be making a formal post to the Rust security list once these
      commits have been merged.
      8ac88d37
  2. 20 9月, 2018 22 次提交
  3. 19 9月, 2018 8 次提交
  4. 18 9月, 2018 5 次提交