Repository navigation
Crash fix: Fix vsnprintf truncation in shareout_mod() - #1936
michaelortmann wants to merge 7 commits into
Conversation
36d555e to
e89fd37
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 36d555e7a6
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
The issue raised above remains, newline could be eliminated when truncating the buffer.
|
|
@thommey Thank you. Fixed. I dont like the resulting C pointer magick, but C is what it is. Ready for review again. |
|
i was giving it some more thinking, looks much better now. |
9925049 to
29214c4
Compare
Found by: michaelortmann
Patch by: michaelortmann
Fixes:
One-line summary:
Additional description (if needed):
Test cases demonstrating functionality (if applicable):
Link a share bot and share the userfile to the linked bot, then:
.+ban FpQfJaI>)uh"lbi5eYO6-om2{o0#;p0FM6[VZR(H6y:s)XpW\^a=M^oaL5cR.h;GftPa-.P43yt$Cv!6),c7a;+UoIog%GZd[Ny]1"\5ar%kaGJ-/=9:lX{}WST%4/}Cq^X;\EX,NHl)%fpx:fTB6;a)=?trP%E'/hL][jW>&7iNcb6}{|jFX'Ou+6ooJj&VY7&wJOeH=$pa3&gabY(HmSwl"BNoK%^G&!xptC?u]_.a5ZVmAv&g#VWYjS7wB@Y0n0B+#gnx]}FJN46%Sw9o7C!jvguj+@hEQj% zSouF;Bs2yL!V?ee5t6fF(&rzrn+a'1**97{k)$/r-J]]+9ruM2x{%gzzCfA"*r[bN$w0K+Oq)/u|Co'%rbo@g7C%%4$jt%#-2![TTzHlp'SJbs.NyXPuwz6:|a3v),Q}LjmBxuLAk7p!Jh8H4(5^|qKpp}{VXESo"01g1kg6|B2L,B4%0MFG51Kvji=(e5091v2#oYfHsW>sE[u<VQLM0Zt*[_V-7x(?j3&UIuFo?MY%6"Q!;MSL>GANc/^N_qIFI*\N<kHKy1uqPB/|PaM^<2`Before:
After:
[03:59:08] shareout_mod(): truncated to 508 bytes