Skip to content
Snippets Groups Projects
  1. Jun 09, 2022
  2. Jun 04, 2022
  3. May 27, 2022
  4. May 26, 2022
  5. May 24, 2022
  6. May 23, 2022
  7. May 16, 2022
    • Derek Foreman's avatar
      util: Limit size of wl_map · b19488c7
      Derek Foreman authored
      
      Since server IDs are basically indistinguishable from really big client
      IDs at many points in the source, it's theoretically possible to overflow
      a map and either overflow server IDs into the client ID space, or grow
      client IDs into the server ID space. This would currently take a massive
      amount of RAM, but the definition of massive changes yearly.
      
      Prevent this by placing a ridiculous but arbitrary upper bound on the
      number of items we can put in a map: 0xF00000, somewhere over 15 million.
      This should satisfy pathological clients without restriction, but stays
      well clear of the 0xFF000000 transition point between server and client
      IDs. It will still take an improbable amount of RAM to hit this, and a
      client could still exhaust all RAM in this way, but our goal is to prevent
      overflow and undefined behaviour.
      
      Fixes #224
      
      Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
      b19488c7
  8. May 11, 2022
  9. May 10, 2022
Loading