author Ted Campbell <>
Tue, 28 Nov 2017 23:01:49 -0500
changeset 442685 84ca5dce1d6a63bc64612876eccee30fc45080f9
parent 441889 ebe8ec78d968ab6fe926495d89bb45572799bfd6
child 443529 b8a13808f775cb513b5fa8310dfcab659af2f507
permissions -rw-r--r--
Bug 1418894 - Harden XDR data decoding. r=nbp a=gchang This patch adds better error detection to XDR decoding to reduce memory corruption in the event that XDR data is corrupt (which is not *supposed* to happen). Add missing default cases. Make out-of-range values fail the decode by asserting in debug, and returning a TranscodeError in release. Mix a magic value into enum value before transcoding to buffer (to reduce chance of garbage data being decoded). MozReview-Commit-ID: 1wPkho9dm8c

skip-check-length = false
skip-check-licenses = false
check-ordered-json-keys = [
lint-scripts = [

# Packages which we avoid using in Servo.
# For each blocked package, we can list the exceptions,
# which are packages allowed to use the blocked package.
rand = [
  "hashglobe", # only uses in tests
num = []

# Ignored packages with duplicated versions
packages = [
# Files that are ignored for all tidy and lint checks.
files = [
  # Mako does not lend itself easily to splitting long lines
  # Helper macro where actually a pseudo-element per line makes sense.
  # Generated and upstream code combined with our own. Could use cleanup
  # Upstream code from Khronos/WebGL uses tabs for indentation
  # Ignore those files since the issues reported are on purpose
# Directories that are ignored for the non-WPT tidy check.
directories = [
  # Upstream
  # Generated and upstream code combined with our own. Could use cleanup

# Directories that are checked for correct file extension
# directory, list of expected file extensions
"./components/script/dom/webidls" = [".webidl"]