Skip to content

Remove useless code#60

Merged
etr merged 1 commit into
etr:masterfrom
a-pavlov:master
Jan 18, 2015
Merged

Remove useless code#60
etr merged 1 commit into
etr:masterfrom
a-pavlov:master

Conversation

@a-pavlov

Copy link
Copy Markdown
Contributor

vector guarantees the placement of element in memory like in array

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same when pulling 8aa8811 on a-pavlov:master into 9bae50c on etr:master.

@etr

etr commented Jan 18, 2015

Copy link
Copy Markdown
Owner

Seems legit. Thank you!

etr added a commit that referenced this pull request Jan 18, 2015
@etr
etr merged commit 4de5e40 into etr:master Jan 18, 2015
etr added a commit that referenced this pull request May 28, 2026
Implements the highest-signal deferred findings surfaced by Pass 1:

examples/ — security fixes copied by users (CWE-798, CWE-79, CWE-22):
- basic_authentication.cpp: read BASIC_USER/BASIC_PASS from env; bail
  if unset; capture into the lambda. Removes hardcoded "myuser"/"mypass".
- digest_authentication.cpp: read DIGEST_PASS from env; bail if unset.
- file_upload.cpp: add html_escape() helper and escape every
  user-controlled field (key, filename, fs path, content-type, transfer
  encoding) before writing into the HTML table.
- file_upload_with_callback.cpp: html_escape() the filename in the HTML
  body and add is_safe_filename() guard (rejects empty/./../slash/
  backslash/NUL) before joining with permanent_dir.

test/REGRESSION.md §4 — prose drift:
- The pinned overlap test now asserts `*hp == first` (deterministic
  first-wins) but the prose still said "could be either one". Updated
  to match the actual assertion and remove the v1-era hedge.

Closes task-040 #58 #59 #60 #61 and task-028 #9 #25 in the unworked
review issues tracker.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants