-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buffer overflow. #43
Labels
Comments
Let's begin with a minimal working example
Run this through
|
Then let's check
|
Fix is imminent:
|
ascherer
added a commit
that referenced
this issue
Jul 17, 2023
Extend the example input lines so that they are longer than |
ascherer
added a commit
that referenced
this issue
Aug 19, 2023
Fixes: * Fix issue #43: 'out_buf' overflow on malign user input - Handle border case from bug report - Discard rest of input lines exceeding 'buf_size' characters - Purge 'ungetc' from the TeX part as well * Fix typo in 'examples/wordtest.w' (reported by DEK) * 'Ilk' is of type 'eight_bits' * Avoid over-/underflow of section depth with malicious user input Internal changes: * Unroll 'init_p' helper function in COMMON - it is used for CWEAVE only (and CTWILL downstream) * Match 'common.w' and 'common.h' - Reshuffle declarations and some code sections - Add starred section titles * Demote all starred sections in 'common.w' (single star) * Code cleanup - Make 'pop_level' a simple macro in CWEAVE - Use structure assignment (as in CTANGLE) - More compact 'stack' handling - Make use of type 'mode' - Purge a few 'goto' statements (and add some others) - Replace some 'sprintf' with 'snprintf' - Syntactic sugar for functional macros - Straighten 'byte_start' arithmetic - Desolve former section 19 of CWEAVE with internal array sizes - Hide 'print_text' analytics function from C compiler with DEBUG - Streamline 'phase_two' of CTANGLE - Refurbish 'phase_three' of CWEAVE * Insert blank line after '\ch' in TeX output (cf. CWEB 3.0) Macro changes * Cleanup some '\acro' macros in 'cwebmac.tex'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://tug.org/pipermail/tex-live/2023-July/049306.html for details. This affects CWEB and WEB alike.
The text was updated successfully, but these errors were encountered: