0

Build pdf_formcalc_context_fuzzer.

Add a dictionary for use with the new fuzzer.

Change-Id: I97d0dd4c1ee973d1a2fb9bb984e34053c1f86b3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1516716
Reviewed-by: Max Moroz <mmoroz@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#639988}
This commit is contained in:
Lei Zhang
2019-03-12 17:18:43 +00:00
committed by Commit Bot
parent 64f5ef3bf3
commit f41a5133c3
2 changed files with 224 additions and 0 deletions
pdf/pdfium/fuzzers

@ -42,6 +42,7 @@ group("pdf_fuzzers") {
":pdf_codec_jpeg_fuzzer",
":pdf_css_fuzzer",
":pdf_fm2js_fuzzer",
":pdf_formcalc_context_fuzzer",
":pdf_formcalc_fuzzer",
":pdfium_xfa_fuzzer",
]
@ -250,6 +251,14 @@ if (pdf_enable_v8) {
dict = "dicts/pdf_formcalc.dict"
}
fuzzer_test("pdf_formcalc_context_fuzzer") {
sources = []
deps = [
"//third_party/pdfium/testing/fuzzers:pdf_formcalc_fuzzer_src",
]
dict = "dicts/pdf_xfa_js.dict"
}
fuzzer_test("pdf_formcalc_fuzzer") {
sources = []
deps = [

@ -0,0 +1,215 @@
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Extracted from JSE_METHOD and JSE_PROP entries in PDFium's fxjs/xfa directory.
# JSE_METHOD
absPage
absPageCount
absPageCountInBatch
absPageInBatch
absPageSpan
addInstance
addItem
addNew
append
applyXSL
assignNode
beep
boundItem
cancel
cancelBatch
clear
clearErrorList
clearItems
clone
close
createNode
deleteItem
documentCountInBatch
documentInBatch
emit
enumerate
evaluate
execCalculate
execEvent
execInitialize
execute
execValidate
exportData
first
formNodes
getAttribute
getDelta
getDeltas
getDisplayItem
getElement
getFocus
getItemState
getSaveItem
gotoRecord
gotoURL
h
hasDataChanged
importData
insert
insertInstance
isBOF
isCompatibleNS
isEOF
isPropertySpecified
isRecordGroup
item
last
loadXML
message
messageBox
metadata
method_name
moveCurrentRecord
moveInstance
namedItem
next
open
openList
page
pageContent
pageCount
pageDown
pageSpan
pageUp
previous
print
recalculate
record
relayout
relayoutPageArea
remerge
remove
removeAttribute
removeInstance
requery
reset
resetData
resolveNode
resolveNodes
response
restore
resync
saveFilteredXML
saveXML
selectedMember
setAttribute
setElement
setFocus
setInstances
setItemState
sheet
sheetCount
sheetCountInBatch
sheetInBatch
sign
trace
traceActivate
traceDeactivate
traceEnabled
update
updateBatch
verifySignature
w
x
y
# JSE_PROP
aliasNode
all
appType
calculationsEnabled
cancelAction
change
checksumS
classAll
classIndex
className
commitKey
content
context
count
currentPage
currentRecordNumber
currentValue
db
defaultValue
editValue
errorText
format
formatMessage
formattedValue
fullText
index
instanceManager
isContainer
isDefined
isNull
keyDown
language
length
locale
max
min
model
modifier
name
newContentType
newText
nodes
ns
numPages
oneOfChild
parent
parentSubform
platform
prevContentType
prevText
prop_name
rawValue
ready
recordsAfter
recordsBefore
reenter
savedValue
ScriptAttributeBool
ScriptAttributeInteger
ScriptAttributeString
ScriptSomBorderColor
ScriptSomBorderWidth
ScriptSomDataNode
ScriptSomDefaultValue
ScriptSomDefaultValue_Read
ScriptSomFillColor
ScriptSomFontColor
ScriptSomInstanceIndex
ScriptSomMandatory
ScriptSomMandatoryMessage
ScriptSomValidationMessage
ScriptSubmitFormatMode
selectedIndex
selEnd
selStart
shift
soapFaultCode
soapFaultString
somExpression
stateless
target
thisValue
title
transient
type
validationsEnabled
value
variation
version