Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. reposting for the day crowd: I ran into a memcmp implementation that only compared 25% of the bytes, and the issue wasn't caught in the build because the vendor toolchain failed to emit a warning.

reposting for the day crowd: I ran into a memcmp implementation that only compared 25% of the bytes, and the issue wasn't caught in the build because the vendor toolchain failed to emit a warning.

Scheduled Pinned Locked Moved Uncategorized
24 Posts 7 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • gsuberland@chaos.socialG gsuberland@chaos.social

    @WAHa_06x36 of course. fuzz testing would quickly find memcmp("aaaa", "Aaaa") == 0 or memcmp("aaaa", "aaaA") == 0 as a violation of the contract (depending on endianness)

    waha_06x36@mastodon.socialW This user is from outside of this forum
    waha_06x36@mastodon.socialW This user is from outside of this forum
    waha_06x36@mastodon.social
    wrote last edited by
    #21

    @gsuberland I mean, if you set up a special test harness against a known-good implementation and used something like afl that actually instruments the code itself, maybe, but, who would ever do that?

    gsuberland@chaos.socialG 1 Reply Last reply
    0
    • waha_06x36@mastodon.socialW waha_06x36@mastodon.social

      @gsuberland I mean, if you set up a special test harness against a known-good implementation and used something like afl that actually instruments the code itself, maybe, but, who would ever do that?

      gsuberland@chaos.socialG This user is from outside of this forum
      gsuberland@chaos.socialG This user is from outside of this forum
      gsuberland@chaos.social
      wrote last edited by
      #22

      @WAHa_06x36 quite a few people! there are even coverage tools specifically for doing this.

      waha_06x36@mastodon.socialW 1 Reply Last reply
      0
      • gsuberland@chaos.socialG gsuberland@chaos.social

        @WAHa_06x36 quite a few people! there are even coverage tools specifically for doing this.

        waha_06x36@mastodon.socialW This user is from outside of this forum
        waha_06x36@mastodon.socialW This user is from outside of this forum
        waha_06x36@mastodon.social
        wrote last edited by
        #23

        @gsuberland Hmm, interesting, haven't seen those!

        1 Reply Last reply
        0
        • gsuberland@chaos.socialG gsuberland@chaos.social

          reposting for the day crowd: I ran into a memcmp implementation that only compared 25% of the bytes, and the issue wasn't caught in the build because the vendor toolchain failed to emit a warning.

          Watch out for missed warnings on vendor C++ toolchains - Graham Sutherland's Blog

          favicon

          (blog.poly.nomial.co.uk)

          ryanc@infosec.exchangeR This user is from outside of this forum
          ryanc@infosec.exchangeR This user is from outside of this forum
          ryanc@infosec.exchange
          wrote last edited by
          #24

          @gsuberland that seems not good

          1 Reply Last reply
          1
          0
          • R relay@relay.infosec.exchange shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups