General

Profile

thoger (Tomas Hoger)

  • Login: thoger
  • Registered on: 07/10/2014
  • Last sign in: 06/09/2015

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

08/04/2014

11:55 AM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Nobuyoshi Nakada wrote:
> `encodes()` does uuencode and mime-encode, so never writes '\0'.
Sorry, my bad - I already forgot it was '\n' that was written out of bounds, not '\0'.
thoger (Tomas Hoger)
09:15 AM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
This seems to be getting off-topic, so just few quick notes:
* It seems -fstack-protector* (SSP) is what is referred to in the previous comment, not FORTIFY_SOURCE.
* If there is encodes()'s buff[] overflow, it corrupts encodes()'s S...
thoger (Tomas Hoger)

07/29/2014

07:55 AM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Nobuyoshi Nakada wrote:
> I couldn't reproduce it with that code, can you?
I can't, and I explained that the output of OpenSSL::HMAC.digest is way too short to fill or overflow buff[] in encodes(). It was added to make it possible f...
thoger (Tomas Hoger)

07/28/2014

03:42 PM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Will Wood wrote:
> Here's the issue. In the loop (len >= 3) you check to see if there's enough room in buff. Unfortunately if len < 3 we don't flush the buffer and then write additional bytes onto the end without checking.
The chec...
thoger (Tomas Hoger)

07/21/2014

08:36 AM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Will Wood wrote:
> d:/ruby-2.1.2-i386-mingw32/lib/ruby/gems/2.1.0/gems/aws-sdk-1.48.1/lib/aws/core/signers/s3.rb:59:in `signature'
https://github.com/aws/aws-sdk-ruby/blob/e243394/lib/aws/core/signers/s3.rb#l59
~~~ruby
signatur...
thoger (Tomas Hoger)

07/10/2014

06:45 PM Ruby Bug #10025 (Closed): Incorrect wrapping of base64 output of Array.pack()
String format directive `m` for Array `pack()` is documented as:
~~~
m | String | base64 encoded string (see RFC 2045, count is width)
| | (if count is 0, no line feed are added, see RFC 4648)
~~~
...
thoger (Tomas Hoger)
06:22 PM Ruby Bug #10019: segmentation fault/buffer overrun in pack.c (encodes)
Nobuyoshi Nakada wrote:
> But if `tail_lf` is 1, `len` is a multiple of 3, so it can't be 3070.
`len` in `encodes()` can be anything between 1 and `len` from `pack_pack()` (which is a multiple of 3). It is possible to trigger mentio...
thoger (Tomas Hoger)

Also available in: Atom