Spell check

This commit is contained in:
Jay Berkenbilt 2017-08-22 14:19:08 -04:00
parent 2a8cd4acdc
commit e452d9dca6
12 changed files with 144 additions and 18 deletions

View File

@ -1,6 +1,6 @@
# Release Reminders # Release Reminders
* Test for binary compatility. The easiest way to do this is to check out the last release, run the test suite, check out the new release, run `make build_libqpdf`, check out the old release, and run `make check NO_REBUILD=1`. * Test for binary compatibility. The easiest way to do this is to check out the last release, run the test suite, check out the new release, run `make build_libqpdf`, check out the old release, and run `make check NO_REBUILD=1`.
* When making a release, always remember to run large file tests and image comparison tests (`--enable-test-compare-images` `--with-large-file-test-path=/path`). For Windows, use a Windows style path, not an MSYS path for large files. For a major release, consider running a spelling checker over the source code to catch errors in variable names, strings, and comments. Use `ispell -p ispell-words`. * When making a release, always remember to run large file tests and image comparison tests (`--enable-test-compare-images` `--with-large-file-test-path=/path`). For Windows, use a Windows style path, not an MSYS path for large files. For a major release, consider running a spelling checker over the source code to catch errors in variable names, strings, and comments. Use `ispell -p ispell-words`.
* Run tests with sanitize address enabled: * Run tests with sanitize address enabled:
``` ```

View File

@ -24,7 +24,7 @@ For Windows, there are several additional files that you might want to download.
* `qpdf-external-libs-src.zip` * `qpdf-external-libs-src.zip`
If you want to build the external libraries on your own (for Windows or anything else), you can download this archive. In addition to including an unmodified distribution `zlib` and the `jpeg` libary, it includes a `README` file and some scripts to help you build it for Windows. You will also have to provide those. If you want to build the external libraries on your own (for Windows or anything else), you can download this archive. In addition to including an unmodified distribution `zlib` and the `jpeg` library, it includes a `README` file and some scripts to help you build it for Windows. You will also have to provide those.
If you want to build on Windows, please see also README-windows.md in the qpdf source distribution. If you want to build on Windows, please see also README-windows.md in the qpdf source distribution.

View File

@ -104,4 +104,4 @@ Redistribution of the runtime DLL is unavoidable as of this writing; see "Static
# Static Runtime # Static Runtime
Building the DLL and executables with static runtime does not work with either Visual C++ .NET 2008 (a.k.a. vc9) using `/MT` or with mingw (at least as of 4.4.0) using `-static-libgcc`. The reason is that, in both cases, there is static data involved with exception handling, and when the runtime is linked in statically, exceptions cannot be thrown across the DLL to EXE boundary. Since qpdf uses exception handling extensively for error handling, we have no choice but to redistribute the C++ runtime DLLs. Maybe this will be addressed in a future version of the compilers. This has not been retested with the toolchain versions used to create qpdf >= 3.0 distributions. This has not been revisited since MSVC 2008, but redistrbuting runtime DLLs is extremely common and should not be a problem. Building the DLL and executables with static runtime does not work with either Visual C++ .NET 2008 (a.k.a. vc9) using `/MT` or with mingw (at least as of 4.4.0) using `-static-libgcc`. The reason is that, in both cases, there is static data involved with exception handling, and when the runtime is linked in statically, exceptions cannot be thrown across the DLL to EXE boundary. Since qpdf uses exception handling extensively for error handling, we have no choice but to redistribute the C++ runtime DLLs. Maybe this will be addressed in a future version of the compilers. This has not been retested with the toolchain versions used to create qpdf >= 3.0 distributions. This has not been revisited since MSVC 2008, but redistributing runtime DLLs is extremely common and should not be a problem.

View File

@ -47,7 +47,7 @@ That code has the following license:
# Building from a pristine checkout # Building from a pristine checkout
When building qpdf from a pristine checkout from version control, documentation and automatically generated files are not present. Building on Windows from a pristine checkout is not guaranteed to work because of issues running autoconf; see [README-windows.md](README-windows.md) for how to handle this. For UNIX and UNIX-like systems, you must have some addditional tools installed to build from the source repository. To do this, you should run When building qpdf from a pristine checkout from version control, documentation and automatically generated files are not present. Building on Windows from a pristine checkout is not guaranteed to work because of issues running autoconf; see [README-windows.md](README-windows.md) for how to handle this. For UNIX and UNIX-like systems, you must have some additional tools installed to build from the source repository. To do this, you should run
``` ```
./autogen.sh ./autogen.sh

View File

@ -113,7 +113,7 @@ if test "x$qpdf_OS_SECURE_RANDOM" = "x1"; then
AC_LINK_IFELSE([AC_LANG_PROGRAM( AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[#pragma comment(lib, "crypt32.lib") [[#pragma comment(lib, "crypt32.lib")
#include <windows.h> #include <windows.h>
#include <Wincrypt.h> #include <wincrypt.h>
HCRYPTPROV cp;]], HCRYPTPROV cp;]],
[CryptAcquireContext(&cp, NULL, NULL, PROV_RSA_FULL, 0);] [CryptAcquireContext(&cp, NULL, NULL, PROV_RSA_FULL, 0);]
)], )],

View File

@ -1,7 +1,7 @@
// //
// This is an example of creating a PDF file from scratch. It // This is an example of creating a PDF file from scratch. It
// illustrates use of several QPDF operations for creating objects and // illustrates use of several QPDF operations for creating objects and
// streams. It also serves as an ullstration of how to use // streams. It also serves as an illustration of how to use
// StreamDataProvider with different types of filters. // StreamDataProvider with different types of filters.
// //

View File

@ -402,7 +402,7 @@ class QPDF
void showXRefTable(); void showXRefTable();
// Returns a list of indirect objects for every object in the xref // Returns a list of indirect objects for every object in the xref
// table. Useful for discovering objects that are not otherwised // table. Useful for discovering objects that are not otherwise
// referenced. // referenced.
QPDF_DLL QPDF_DLL
std::vector<QPDFObjectHandle> getAllObjects(); std::vector<QPDFObjectHandle> getAllObjects();

View File

@ -178,7 +178,7 @@ class QPDFWriter
// compression. Note that compressing the resulting data with // compression. Note that compressing the resulting data with
// DCTDecode again will accumulate loss, so avoid multiple // DCTDecode again will accumulate loss, so avoid multiple
// compression and decompression cycles. This is mostly useful for // compression and decompression cycles. This is mostly useful for
// retreiving image data. // retrieving image data.
QPDF_DLL QPDF_DLL
void setDecodeLevel(qpdf_stream_decode_level_e); void setDecodeLevel(qpdf_stream_decode_level_e);

View File

@ -62,11 +62,14 @@ APIs
appendable appendable
appendItem appendItem
appendString appendString
arandom
arg arg
argc argc
args
argv argv
arko arko
arko's arko's
Arora
ArtBox ArtBox
ascii ascii
asciiHex asciiHex
@ -96,6 +99,7 @@ atoi
AuthEvent AuthEvent
autobuilder autobuilder
autoconf autoconf
autofiles
autogen autogen
autoheader autoheader
autolabel autolabel
@ -129,6 +133,7 @@ BogusRandomDataProvider
boldseq boldseq
bookinfo bookinfo
bool bool
BORLANDC
bp bp
brdp brdp
bs bs
@ -144,6 +149,7 @@ buildrules
bw bw
bytesNeeded bytesNeeded
ca ca
calc
calculateHOutline calculateHOutline
calculateHPageOffset calculateHPageOffset
calculateHSharedObject calculateHSharedObject
@ -169,6 +175,7 @@ ced
cerr cerr
cf cf
cfea cfea
CFLAGS
CFM CFM
ch ch
ChangeLog ChangeLog
@ -190,24 +197,32 @@ CHPageOffsetEntry
CHSharedObject CHSharedObject
CHSharedObjectEntry CHSharedObjectEntry
CHSomething CHSomething
cin
cinfo
ciphertext ciphertext
cl cl
classname classname
clearPipelineStack clearPipelineStack
cleartext cleartext
CloseHandle
closeObject closeObject
cmath cmath
cmd cmd
cmyk
codepage codepage
codepoint codepoint
col
ColorSpace ColorSpace
colorspace
com com
compareVersions compareVersions
compatbility compatbility
CompressConfig
computeDeterministicIDData computeDeterministicIDData
concat concat
Cond Cond
config config
conftest
const const
contrib contrib
CopiedStreamDataProvider CopiedStreamDataProvider
@ -222,6 +237,7 @@ cphe
cplusplus cplusplus
CPPFLAGS CPPFLAGS
cr cr
CreateFile
createPageContents createPageContents
createWhat createWhat
CreationDate CreationDate
@ -242,13 +258,15 @@ cstring
ctest ctest
ctx ctx
ctype ctype
cxx
CXXFLAGS
cygwin cygwin
da da
daae daae
dae dae
db db
dc dc
DCT dct
DCTDecode DCTDecode
dd dd
ddaf ddaf
@ -276,6 +294,9 @@ dereferenced
dest dest
DESTDIR DESTDIR
detecet detecet
dev
devel
DeviceCMYK
DeviceGray DeviceGray
DeviceRGB DeviceRGB
dict dict
@ -291,6 +312,7 @@ DiscardContents
discardGeneration discardGeneration
dist dist
distclean distclean
dl
dlfcn dlfcn
DLL DLL
DLL's DLL's
@ -315,6 +337,7 @@ dup
dwHighDateTime dwHighDateTime
dwLowDateTime dwLowDateTime
DWORD DWORD
dwVolumeSerialNumber
ea ea
eadb eadb
earlychange earlychange
@ -327,7 +350,7 @@ ecedd
eded eded
eeb eeb
eeee eeee
EF ef
EFF EFF
efgh efgh
EI EI
@ -353,6 +376,8 @@ endstream
enqueue enqueue
enqueueing enqueueing
enqueueObject enqueueObject
enqueueObjectsPCLm
enqueueObjectsStandard
enqueuePart enqueuePart
enqueues enqueues
enqueuing enqueuing
@ -363,6 +388,7 @@ eod
eof eof
eol eol
epub epub
eq
eraseItem eraseItem
Erdelsky's Erdelsky's
errno errno
@ -387,6 +413,7 @@ ff
ffff ffff
fflush fflush
fghij fghij
fh
fi fi
fI fI
fIinfilename fIinfilename
@ -401,7 +428,13 @@ filetrailer
filterCompressedObjects filterCompressedObjects
findAndSkipNextEOL findAndSkipNextEOL
findAttachmentStreams findAttachmentStreams
findEndstream
findFirst
findHeader
findLast
findPage findPage
findSource
findStartxref
fIoptions fIoptions
fIoutfilename fIoutfilename
firstname firstname
@ -411,25 +444,30 @@ flate
FlateDecode FlateDecode
flattenPagesTree flattenPagesTree
flattenScalarReferences flattenScalarReferences
Florian
FMT FMT
fn fn
fname fname
fo fo
fopen fopen
forcePDFVersion forcePDFVersion
foreach
fprintf fprintf
fR fR
fr fr
fread fread
fsanitize
fseek fseek
fseeki fseeki
fseeko fseeko
fstream
ftell ftell
ftelli ftelli
ftello ftello
fullinfo fullinfo
fullpad fullpad
func func
fweimer
fwrite fwrite
Gagic Gagic
GajiÄ GajiÄ
@ -440,6 +478,7 @@ generateHintStream
generateID generateID
generateObjectStreams generateObjectStreams
genok genok
getAllObjects
getAllPages getAllPages
getAllPagesInternal getAllPagesInternal
getArrayAsVector getArrayAsVector
@ -465,11 +504,13 @@ getErrorCode
getErrorMessage getErrorMessage
getExtensionLevel getExtensionLevel
getFileChecksum getFileChecksum
GetFileInformationByHandle
getFilename getFilename
getFilePosition getFilePosition
getFirstChar getFirstChar
getGen getGen
getGeneration getGeneration
getHeight
getHexDigest getHexDigest
getId getId
getInlineImageValue getInlineImageValue
@ -544,6 +585,7 @@ getVal
getValue getValue
getWarnings getWarnings
getWhoami getWhoami
getWidth
GG GG
ghostscript ghostscript
GhostScript GhostScript
@ -551,8 +593,13 @@ github
glerbl glerbl
glibc glibc
gm gm
gmail
GNUC GNUC
gnuwin
grayscale grayscale
grep
gsdnld
gswin
gt gt
GUIs GUIs
gz gz
@ -572,6 +619,7 @@ hexkey
hexkeylen hexkeylen
hexstring hexstring
hexstrings hexstrings
hf
HGeneric HGeneric
hh hh
HighPart HighPart
@ -589,6 +637,7 @@ HSharedObjectEntry
HSi HSi
HSomething HSomething
HSomethingEntry HSomethingEntry
htcondor
htm htm
html html
http http
@ -602,6 +651,8 @@ ifdef
ifeq ifeq
iff iff
ifndef ifndef
ifstream
ijg
Im Im
ImageC ImageC
ImageChecker ImageChecker
@ -626,6 +677,7 @@ initializeWithRandomBytes
inline inline
InlineImage InlineImage
inlineimage inlineimage
ino
inode inode
inpdf inpdf
inputLen inputLen
@ -647,6 +699,7 @@ inverter
io io
IOLBF IOLBF
iomanip iomanip
ios
iostream iostream
irdp irdp
isArray isArray
@ -674,13 +727,26 @@ isScalar
isspace isspace
isStream isStream
isString isString
istream
istype istype
italicseq italicseq
itemizedlist itemizedlist
iter iter
ith ith
JCS
JDIMENSION
jerr
Jian Jian
jklmnopqrstuvwxyz jklmnopqrstuvwxyz
jmp
jmpbuf
JMSG
jpeg
jpeglib
JPOOL
JSAMPARRAY
JSAMPLE
JSAMPROW
keybits keybits
keylen keylen
KEYLENGTH KEYLENGTH
@ -698,11 +764,15 @@ len
lengthNextN lengthNextN
Lexer Lexer
lhs lhs
libclang
libgcc libgcc
libjpeg
LibJpeg
libqpdf libqpdf
libs libs
libtests libtests
libtiff libtiff
LibTiff
libtool libtool
libtool's libtool's
libtoolize libtoolize
@ -722,8 +792,11 @@ linp
LinParameters LinParameters
linux linux
listitem listitem
ljpeg
ll ll
lld lld
llvm
longjmp
lookup lookup
lossy lossy
LowPart LowPart
@ -753,7 +826,7 @@ mdash
MDd MDd
mediabox mediabox
MediaBox MediaBox
MEM mem
Memcheck Memcheck
memchr memchr
memcmp memcmp
@ -762,6 +835,7 @@ memmove
memset memset
merchantability merchantability
metadata metadata
mgr
min min
mingw mingw
MinGW MinGW
@ -771,6 +845,7 @@ misc
MixColumn MixColumn
mk mk
mkinstalldirs mkinstalldirs
mklink
monoseq monoseq
MSC MSC
msg msg
@ -779,6 +854,7 @@ MSVC's
msys msys
multibyte multibyte
multiline multiline
multipage
multithreaded multithreaded
Mutator Mutator
mutators mutators
@ -809,6 +885,8 @@ newReal
newReserved newReserved
newStream newStream
newString newString
nFileIndexHigh
nFileIndexLow
nfirst nfirst
nitems nitems
nl nl
@ -843,6 +921,7 @@ ObjAccessor
ObjCache ObjCache
ObjCopier ObjCopier
OBJDIR OBJDIR
objdump
ObjectHolder ObjectHolder
ObjGen ObjGen
ObjGens ObjGens
@ -881,6 +960,7 @@ ou
OUE OUE
ous ous
outbuf outbuf
outbuffer
OUTDOC OUTDOC
outfile outfile
outfilename outfilename
@ -891,6 +971,7 @@ outprefix
outputLengthNextN outputLengthNextN
ovecsize ovecsize
ovector ovector
pacman
padLen padLen
Paeth Paeth
pagemode pagemode
@ -902,16 +983,21 @@ para
param param
params params
parms parms
parsecontent
parseContentStream parseContentStream
parseInternal parseInternal
ParserCallbacks ParserCallbacks
parseVersion parseVersion
partLen partLen
pathsep pathsep
patmv
PatternFinder
Pavlyuk Pavlyuk
pb pb
pbytes pbytes
pc pc
PCLm
pclm
pcre pcre
pdf pdf
PDFâ PDFâ
@ -997,8 +1083,10 @@ qpdf's
QPDF's QPDF's
QPDFCONSTANTS QPDFCONSTANTS
QPDFExc QPDFExc
QPDFFake
QPDFObject QPDFObject
QPDFObjectHandle QPDFObjectHandle
QPDFObjectHandle's
QPDFObjectHandles QPDFObjectHandles
QPDFObjectTypeAccessor QPDFObjectTypeAccessor
QPDFObjGen QPDFObjGen
@ -1022,6 +1110,7 @@ qtest
QTest QTest
QuadPart QuadPart
QUtil QUtil
qutil
qwert qwert
rand rand
RandomDataProvider RandomDataProvider
@ -1045,6 +1134,7 @@ readObjectAtOffset
readToken readToken
reattached reattached
recompress recompress
recompressed
recompressing recompressing
recomputation recomputation
recoverStreamLength recoverStreamLength
@ -1071,11 +1161,13 @@ reserveObjects
resetBits resetBits
resolveLiteral resolveLiteral
resolveObjectsInStream resolveObjectsInStream
ResolveRecorder
retargeted retargeted
retested retested
reverseResolved reverseResolved
rf rf
rfont rfont
rgb
rhs rhs
rijndael rijndael
rijndaelDecrypt rijndaelDecrypt
@ -1085,18 +1177,29 @@ rijndaelSetupEncrypt
rk rk
Rkey Rkey
RKLENGTH RKLENGTH
RL rl
rm rm
RNRT RNRT
rotatePage
RotationSpec
roundoff roundoff
rr
RSA RSA
rspec
rstream rstream
RStream RStream
RunLength
runlength
RunLengthDecode RunLengthDecode
runtest runtest
Sahil
sahilarora
sAlT sAlT
SAPHIR saphir
sarray
SASLprep SASLprep
scanline
scanlines
se se
SecureRandomDataProvider SecureRandomDataProvider
sed sed
@ -1109,8 +1212,10 @@ setArrayFromVector
setArrayItem setArrayItem
setAttemptRecovery setAttemptRecovery
setbase setbase
setCompressStreams
setContentNormalization setContentNormalization
setDataKey setDataKey
setDecodeLevel
setDeterministicID setDeterministicID
setEncryptionParameters setEncryptionParameters
setEncryptionParametersInternal setEncryptionParametersInternal
@ -1121,12 +1226,14 @@ setFromVector
setIgnoreXRefStreams setIgnoreXRefStreams
setItem setItem
setIV setIV
setjmp
setLastObjectDescription setLastObjectDescription
setLastOffset setLastOffset
setLinearization setLinearization
setLineBuf setLineBuf
setMinimumPDFVersion setMinimumPDFVersion
setmode setmode
setNewlineBeforeEndstream
setO setO
setObjectStreamMode setObjectStreamMode
setObjGen setObjGen
@ -1135,8 +1242,10 @@ setOutputFilename
setOutputMemory setOutputMemory
setOutputPipeline setOutputPipeline
setOutputStreams setOutputStreams
setPCLm
setprecision setprecision
setPreserveEncryption setPreserveEncryption
setPreserveUnreferencedObjects
setQDFMode setQDFMode
setR setR
setRandomDataProvider setRandomDataProvider
@ -1149,6 +1258,7 @@ setTrailer
setU setU
setV setV
setvbuf setvbuf
sf
sha sha
shallowCopy shallowCopy
showLinearizationData showLinearizationData
@ -1156,10 +1266,13 @@ showXRefTable
sizeof sizeof
skipToNextByte skipToNextByte
soe soe
softlink
sourceforge sourceforge
SourceForge SourceForge
sph sph
sphlib
sprintf sprintf
sqlite
srand srand
srandom srandom
src src
@ -1178,16 +1291,19 @@ stdin
stdint stdint
StdioFile StdioFile
stdlib stdlib
stdlib's
stdout stdout
STL STL
StmF StmF
str str
strcasecmp
strchr strchr
strcmp strcmp
strcpy strcpy
StreamDataProvider StreamDataProvider
strerror strerror
StrF StrF
stricmp
StringDecrypter StringDecrypter
stringprep stringprep
stripesize stripesize
@ -1210,6 +1326,7 @@ Subramanyam
substr substr
substring substring
Subtype Subtype
sudo
supp supp
suppressions suppressions
swapObjects swapObjects
@ -1219,6 +1336,7 @@ sys
sysnow sysnow
SYSTEMTIME SYSTEMTIME
SystemTimeToFileTime SystemTimeToFileTime
Syuu
TARNAME TARNAME
tbuf tbuf
tc tc
@ -1239,6 +1357,7 @@ tobj
tobjid tobjid
TODO TODO
toffset toffset
tokenize
tokenized tokenized
tokenizer tokenizer
tokenizing tokenizing
@ -1250,6 +1369,7 @@ tp
TrimBox TrimBox
trimTrailerForWrite trimTrailerForWrite
tt tt
turbo
txt txt
uc uc
udata udata
@ -1288,6 +1408,7 @@ updateAllPagesCache
updateObjectMaps updateObjectMaps
updateObjectMapsInternal updateObjectMapsInternal
updatePagesCache updatePagesCache
urandom
url url
UseOutlines UseOutlines
useStaticIV useStaticIV
@ -1319,10 +1440,11 @@ vp
vvv vvv
wb wb
Wconversion Wconversion
Weimer
werror werror
whoami whoami
WinAnsiEncoding WinAnsiEncoding
Wincrypt wincrypt
WindowsCryptProvider WindowsCryptProvider
Wold Wold
writeBinary writeBinary
@ -1357,9 +1479,11 @@ xABUL
xbebfbc xbebfbc
xbf xbf
xc xc
xcc
xD xD
xDC xDC
xeaa xeaa
xee
xefcdab xefcdab
xF xF
xf xf
@ -1384,6 +1508,8 @@ xpacket
xpdf xpdf
XRef XRef
xref xref
xrefEntry
xrefFirst
XRefStm XRefStm
xrefStream xrefStream
xrefTable xrefTable

View File

@ -957,7 +957,7 @@ QPDFObjectHandle::parseInternal(PointerHolder<InputSource> input,
bool content_stream) bool content_stream)
{ {
// This method must take care not to resolve any objects. Don't // This method must take care not to resolve any objects. Don't
// check the tpye of any object without first ensuring that it is // check the type of any object without first ensuring that it is
// a direct object. Otherwise, doing so may have the side effect // a direct object. Otherwise, doing so may have the side effect
// of reading the object and changing the file pointer. // of reading the object and changing the file pointer.

View File

@ -3261,7 +3261,7 @@ QPDFWriter::writeStandard()
enqueueObjectsStandard(); enqueueObjectsStandard();
} }
// Now start walking queue, outputing each object. There shouldn't // Now start walking queue, outputting each object. There shouldn't
// really be any here, but this will catch anything that somehow // really be any here, but this will catch anything that somehow
// got missed. // got missed.
while (this->m->object_queue.size()) while (this->m->object_queue.size())

View File

@ -1154,7 +1154,7 @@ static void read_args_from_file(char const* filename,
} }
} }
static void handle_help_verison(int argc, char* argv[]) static void handle_help_version(int argc, char* argv[])
{ {
if ((argc == 2) && if ((argc == 2) &&
((strcmp(argv[1], "--version") == 0) || ((strcmp(argv[1], "--version") == 0) ||
@ -2255,7 +2255,7 @@ int main(int argc, char* argv[])
whoami += 3; whoami += 3;
} }
handle_help_verison(argc, argv); handle_help_version(argc, argv);
// Support reading arguments from files. Create a new argv. Ensure // Support reading arguments from files. Create a new argv. Ensure
// that argv itself as well as all its contents are automatically // that argv itself as well as all its contents are automatically