Eliminate UBSAN: array-index-out-of-bounds in map_runtime.h warnings

The kernel's UBSAN array-index-out-of-bounds check needs the variable
in the struct holding the size of the dynamically allocated array to
be initialized before accessing the array.  The code in
_stp_map_init() has been reordered to allow the UBSAN check to work
properly.
1 file changed
tree: c99e4d86659ba6588610e119abd5273661274e9f
  1. doc/
  2. emacs/
  3. httpd/
  4. includes/
  5. initscript/
  6. interactive-notebook/
  7. java/
  8. language-server/
  9. m4/
  10. man/
  11. po/
  12. python/
  13. runtime/
  14. scripts/
  15. stap-exporter/
  16. stapbpf/
  17. stapdyn/
  18. staprun/
  19. tapset/
  20. testsuite/
  21. vim/
  22. .gitignore
  23. .mailmap
  24. ABOUT-NLS
  25. aclocal.m4
  26. analysis.cxx
  27. analysis.h
  28. ar-lib
  29. AUTHORS
  30. AUTHORS.sh
  31. bpf-base.cxx
  32. bpf-bitset.cxx
  33. bpf-bitset.h
  34. bpf-internal.h
  35. bpf-opt.cxx
  36. bpf-shared-globals.h
  37. bpf-translate.cxx
  38. bpf.h
  39. buildrun.cxx
  40. buildrun.h
  41. cache.cxx
  42. cache.h
  43. client-http.cxx
  44. client-http.h
  45. client-nss.cxx
  46. client-nss.h
  47. cmdline.cxx
  48. cmdline.h
  49. compile
  50. config.guess
  51. config.in
  52. config.rpath
  53. config.sub
  54. configure
  55. configure.ac
  56. COPYING
  57. coveragedb.cxx
  58. coveragedb.h
  59. csclient.cxx
  60. csclient.h
  61. cscommon.cxx
  62. cscommon.h
  63. depcomp
  64. dtrace.in
  65. dwarf_wrappers.cxx
  66. dwarf_wrappers.h
  67. dwflpp.cxx
  68. dwflpp.h
  69. elaborate.cxx
  70. elaborate.h
  71. git_version.sh
  72. HACKING
  73. hash.cxx
  74. hash.h
  75. INSTALL
  76. install-sh
  77. interactive.cxx
  78. interactive.h
  79. INTERNALS
  80. loc2stap.cxx
  81. loc2stap.h
  82. macros.systemtap.in
  83. main.cxx
  84. Makefile.am
  85. Makefile.in
  86. mdfour.c
  87. mdfour.h
  88. missing
  89. NEWS
  90. nss-server-info.cxx
  91. nss-server-info.h
  92. nsscommon.cxx
  93. nsscommon.h
  94. parse.cxx
  95. parse.h
  96. privilege.cxx
  97. privilege.h
  98. py-compile
  99. README
  100. README.security
  101. README.stapregex
  102. README.unprivileged
  103. remote.cxx
  104. remote.h
  105. rpm_finder.cxx
  106. rpm_finder.h
  107. run-stap.in
  108. runtest.sh
  109. sdt_types.h
  110. session.cxx
  111. session.h
  112. setupdwfl.cxx
  113. setupdwfl.h
  114. smileytap.svg
  115. stap-authorize-cert.cxx
  116. stap-env
  117. stap-gen-cert.cxx
  118. stap-prep
  119. stap-profile-annotate.in
  120. stap-report
  121. stap-server
  122. stap-server.conf
  123. stap-server.service
  124. stap-serverd.cxx
  125. stap-sign-module.cxx
  126. stap-start-server
  127. stap-stop-server
  128. staplog.c
  129. stapregex-defines.h
  130. stapregex-dfa.cxx
  131. stapregex-dfa.h
  132. stapregex-parse.cxx
  133. stapregex-parse.h
  134. stapregex-tree.cxx
  135. stapregex-tree.h
  136. stapregex.cxx
  137. stapregex.h
  138. staptree.cxx
  139. staptree.h
  140. staputil.cxx
  141. staputil.h
  142. stapvirt.c
  143. stringtable.cxx
  144. stringtable.h
  145. systemtap.spec
  146. tapset-been.cxx
  147. tapset-debuginfod.cxx
  148. tapset-dynprobe.cxx
  149. tapset-dynprobe.h
  150. tapset-mark.cxx
  151. tapset-method.cxx
  152. tapset-netfilter.cxx
  153. tapset-perfmon.cxx
  154. tapset-procfs.cxx
  155. tapset-python.cxx
  156. tapset-timers.cxx
  157. tapset-utrace.cxx
  158. tapsets.cxx
  159. tapsets.h
  160. task_finder.cxx
  161. task_finder.h
  162. translate.cxx
  163. translate.h
  164. translator-output.cxx
  165. translator-output.h
  166. version.h
  167. zanata.xml