GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix out-of-bounds read in select_next_proto when no protocol matches … · netty/netty-tcnative@d41c8db

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • openssl-dynamic/src/main/c
    • sslutils.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎openssl-dynamic/src/main/c/sslutils.c‎

Copy file name to clipboardExpand all lines: openssl-dynamic/src/main/c/sslutils.c
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,9 @@ int select_next_proto(SSL *ssl, const unsigned char **out, unsigned char *outlen
740740
p += proto_len;
741741
}
742742

743-
// increment len and pointers.
744-
i += target_proto_len;
743+
// increment len and pointers. Account for the length byte as well, otherwise we would read past the
744+
// end of supported_protos.
745+
i += target_proto_len + 1;
745746
supported_protos += target_proto_len;
746747
}
747748

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.