Bump golang.org/x/text from 0.33.0 to 0.34.0 - #2
Closed
dependabot[bot] wants to merge 1006 commits into
Closed
Conversation
This heavily reduces memory usage for some files.
This avoids keeping potentially large decoded data blocks in memory that might not be used.
Keywords can already be set via pdfcpu keywords, the dates and producer are always set when the document is edited with pdfcpu properties. As far as I could see, trapped should not be modified manually to avoid inconsistencies.
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.46.0. - [Commits](golang/crypto@v0.45.0...v0.46.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-version: 0.46.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
The previous workflow defined a matrix with goos/goarch targets but: 1. Never used those variables (they were completely ignored) 2. Ran all jobs on ubuntu-latest regardless of target OS 3. Tests only ran via goveralls, not explicitly This meant darwin and windows tests were never actually executed - all 14 matrix jobs ran identical Linux tests. Changes: - Split into three jobs: test, cross-compile, coverage - test: Runs on actual macOS, Windows, and Linux runners - cross-compile: Build/vet checks for arm, arm64, wasm (can't test natively) - coverage: Separate job for goveralls on Linux - Add explicit `go test -v -race` for visible test output Co-Authored-By: Claude <noreply@anthropic.com>
Without -coverpkg=./..., coverage is only counted for the package containing the test file. This excluded 15 packages that have no internal tests and are only exercised by the integration tests in pkg/api/test/ and pkg/cli/test/: pkg/cli, pkg/pdfcpu/validate, pkg/pdfcpu/primitives, pkg/pdfcpu/form, pkg/pdfcpu/create, pkg/pdfcpu/sign, pkg/pdfcpu/font, pkg/pdfcpu/color, pkg/pdfcpu/draw, pkg/pdfcpu/format, pkg/pdfcpu/matrix, pkg/pdfcpu/scan, pkg/font, internal/corefont/metrics, cmd/pdfcpu Co-Authored-By: Claude <noreply@anthropic.com>
Migrate all error handling from the deprecated github.com/pkg/errors
(unmaintained since 2020) to Go stdlib equivalents:
- errors.New() → errors.New() (stdlib, same API)
- errors.Errorf() → fmt.Errorf()
- errors.Wrap(err, msg) → fmt.Errorf("msg: %w", err)
- errors.Wrapf(err, fmt, args) → fmt.Errorf("fmt: %w", args, err)
Also fixes two pre-existing bugs where error values from errors.Errorf()
were silently discarded (model/dereference.go:436, image.go:329), and
a redundant err argument in write.go:75.
Removes github.com/pkg/errors v0.9.1 from go.mod.
https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Covers Critical (decompression bombs, unbounded allocations, disabled signature verification, xref overflow) and High (path traversal, OOB panics, recursion limits, constant-time crypto) findings. https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Addresses 17 security findings from the audit: Critical: - Decompression bomb: limit all filter decoders to 250MB max output - Unbounded stream allocation: cap stream buffer at 250MB - Timestamp signature verification: re-enable VerifyWithChain - XRef stream Index: cap object count at 10M entries High: - Path traversal: sanitize bookmark titles, font/image names with filepath.Base - Unbounded buffer growth: add max size checks in readStreamContentBlindly/buffer - Index OOB panics: add bounds checks in nextStreamOffset, skipTJ, skipBI - Recursion depth: track parse depth via context, limit to 100 levels - Constant-time crypto: use subtle.ConstantTimeCompare for password validation - PKCS#7 padding: validate all padding bytes, not just the last one - Bounds checks: fix runLengthDecode OOB, parseObjectStream, DecodeLength https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Maps all 143 open issues against the current architecture (108k LOC), identifies structural problems, and proposes a new architecture with: - Immutable document model (no more mutable Context) - Lazy loading + streaming I/O (solve memory issues) - Atomic writes (ACID guarantees) - Structured logging with trace IDs - Security-first (no panics, no os.Exit in library) - LLM-friendly (text extraction, JSON output, schemas) - Separated lexer/parser with error recovery https://claude.ai/code/session_012G7n383dDDPzdDSXVwZTWj
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.33.0 to 0.34.0. - [Release notes](https://github.com/golang/text/releases) - [Commits](golang/text@v0.33.0...v0.34.0) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-version: 0.34.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
dependabot
Bot
deleted the
dependabot/go_modules/golang.org/x/text-0.34.0
branch
March 7, 2026 16:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps golang.org/x/text from 0.33.0 to 0.34.0.
Commits
817fba9go.mod: update golang.org/x dependencies3264de9all: clean up old Go hacks74af298all: fix tags in remaining Unicode tables117e03ball: delete old Unicode tables9463ea4all: update to Unicode 177278b25internal/export/idna: update for post-Unicode 10 idna changesf964ad8internal/export/idna: delete old code678d34eunicode/norm: preserve QC Maybe bit in packed forminfoDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)