Skip to content
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

MDER pull request #2

Merged
1 commit merged into from
Oct 18, 2010
Merged

MDER pull request #2

1 commit merged into from
Oct 18, 2010

Conversation

sancane
Copy link
Contributor

@sancane sancane commented Oct 18, 2010

Fix compilation warning regarding BIT_STRING decoder function

@vlm
Copy link
Owner

vlm commented Oct 18, 2010

Applied, thanks!

velichkov referenced this pull request in velichkov/asn1c Jul 18, 2016
See also http://stackoverflow.com/questions/25390720/va-arg-gives-something-strange-in-cygwin-x64

  Program received signal SIGSEGV, Segmentation fault.
  (gdb) bt
  #0  0x00007ffff7b7c8f1 in __strlen_sse2_pminub () from /lib64/libc.so.6
  #1  0x0000000000425d29 in asn1c_make_identifier (flags=flags@entry=(AMI_MASK_ONLY_SPACES | AMI_NODELIMITER), expr=expr@entry=0x0) at asn1c_misc.c:73
  #2  0x00000000004263ec in asn1c_type_name (arg=arg@entry=0x7fffffffe000, expr=expr@entry=0x6757c0, _format=<optimized out>,
      _format@entry=TNF_INCLUDE) at asn1c_misc.c:268
  vlm#3  0x00000000004226fc in asn1c_lang_C_type_SIMPLE_TYPE (arg=arg@entry=0x7fffffffe000) at asn1c_C.c:1119
  vlm#4  0x00000000004232c1 in asn1c_lang_C_type_common_INTEGER (arg=0x7fffffffe000) at asn1c_C.c:251
  vlm#5  0x0000000000419c75 in asn1c_compile_expr (arg=arg@entry=0x7fffffffe000) at asn1compiler.c:100
  vlm#6  0x0000000000419f33 in asn1_compile (asn=asn@entry=0x671e10, datadir=datadir@entry=0x426730 "/home/vasko/usr/share/asn1c",
      flags=flags@entry=A1C_NO_C99, argc=2, optc=0, argv=0x7fffffffe268) at asn1compiler.c:44
  vlm#7  0x0000000000401f13 in main (ac=1, av=0x7fffffffe270) at asn1c.c:328
velichkov referenced this pull request in velichkov/asn1c Mar 21, 2017
Sync PR143 with mouse07410's master
velichkov referenced this pull request in velichkov/asn1c Mar 22, 2017
brchiu added a commit to brchiu/asn1c that referenced this pull request Mar 25, 2017
velichkov referenced this pull request in velichkov/asn1c Mar 21, 2018
When there were no any padding bits the uper and aper decoders where
trying to read some which results in read past the buffer end.

See mouse07410#33 (comment)

ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000315 at pc 0x000102ce9c15 bp 0x7fff5d20a8d0 sp 0x7fff5d20a8c8
READ of size 1 at 0x602000000315 thread T0
    #0 0x102ce9c14 in asn_get_few_bits asn_bit_data.c:132
    #1 0x102d878fd in aper_open_type_get_simple per_opentype.c:455
    #2 0x102d85dcc in aper_open_type_get per_opentype.c:514
velichkov referenced this pull request in velichkov/asn1c Mar 21, 2018
When there were no any padding bits the uper and aper decoders where
trying to read some which results in read past the buffer end.

See mouse07410#33 (comment)

ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000315 at pc 0x000102ce9c15 bp 0x7fff5d20a8d0 sp 0x7fff5d20a8c8
READ of size 1 at 0x602000000315 thread T0
    #0 0x102ce9c14 in asn_get_few_bits asn_bit_data.c:132
    #1 0x102d878fd in aper_open_type_get_simple per_opentype.c:455
    #2 0x102d85dcc in aper_open_type_get per_opentype.c:514
This pull request was closed.
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.

None yet

2 participants