Advertisement
goatbar

A flavor for the issues in MB-System

Oct 8th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.36 KB | None | 0 0
  1. mb7k2ss.c:607:29: warning: ‘%4.4d’ directive writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
  2. sprintf(output_file, "%s_%4.4d_sshi.mb71", lineroot, linenumber);
  3. ^~~~~
  4. mb7k2ss.c:607:4: note: ‘sprintf’ output between 16 and 1046 bytes into a destination of size 1024
  5. sprintf(output_file, "%s_%4.4d_sshi.mb71", lineroot, linenumber);
  6. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. mb7k2ss.c:605:29: warning: ‘%4.4d’ directive writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
  8. sprintf(output_file, "%s_%4.4d_sslo.mb71", lineroot, linenumber);
  9. ^~~~~
  10. mb7k2ss.c:605:4: note: ‘sprintf’ output between 16 and 1046 bytes into a destination of size 1024
  11. sprintf(output_file, "%s_%4.4d_sslo.mb71", lineroot, linenumber);
  12. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. mb7k2ss.c:780:26: warning: ‘_ssswathplot.cmd’ directive writing 16 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
  14. sprintf(scriptfile, "%s_ssswathplot.cmd", file);
  15. ^~~~~~~~~~~~~~~~
  16. mb7k2ss.c:780:3: note: ‘sprintf’ output between 17 and 1040 bytes into a destination of size 1024
  17. sprintf(scriptfile, "%s_ssswathplot.cmd", file);
  18. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. mb7k2ss.c:777:26: warning: ‘_ssswathplot.cmd’ directive writing 16 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
  20. sprintf(scriptfile, "%s_ssswathplot.cmd", read_file);
  21. ^~~~~~~~~~~~~~~~
  22. mb7k2ss.c:777:3: note: ‘sprintf’ output between 17 and 1040 bytes into a destination of size 1024
  23. sprintf(scriptfile, "%s_ssswathplot.cmd", read_file);
  24. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. mb7k2ss.c:774:26: warning: ‘_ssswathplot.cmd’ directive writing 16 bytes into a region of size between 1 and 1024 [-Wformat-overflow=]
  26. sprintf(scriptfile, "%s_ssswathplot.cmd", lineroot);
  27. ^~~~~~~~~~~~~~~~
  28. mb7k2ss.c:774:3: note: ‘sprintf’ output between 17 and 1040 bytes into a destination of size 1024
  29. sprintf(scriptfile, "%s_ssswathplot.cmd", lineroot);
  30. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. mb7k2ss.c:1187:32: warning: ‘%4.4d’ directive writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
  32. sprintf(output_file, "%s_%4.4d_sshi.mb71", lineroot, linenumber);
  33. ^~~~~
  34. mb7k2ss.c:1187:28: note: directive argument in the range [-2147483647, 2147483647]
  35. sprintf(output_file, "%s_%4.4d_sshi.mb71", lineroot, linenumber);
  36. ^~~~~~~~~~~~~~~~~~~~
  37. mb7k2ss.c:1187:7: note: ‘sprintf’ output between 16 and 1046 bytes into a destination of size 1024
  38. sprintf(output_file, "%s_%4.4d_sshi.mb71", lineroot, linenumber);
  39. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. mb7k2ss.c:1185:32: warning: ‘%4.4d’ directive writing between 4 and 11 bytes into a region of size between 0 and 1023 [-Wformat-overflow=]
  41. sprintf(output_file, "%s_%4.4d_sslo.mb71", lineroot, linenumber);
  42. ^~~~~
  43. mb7k2ss.c:1185:28: note: directive argument in the range [-2147483647, 2147483647]
  44. sprintf(output_file, "%s_%4.4d_sslo.mb71", lineroot, linenumber);
  45. ^~~~~~~~~~~~~~~~~~~~
  46. mb7k2ss.c:1185:7: note: ‘sprintf’ output between 16 and 1046 bytes into a destination of size 1024
  47. sprintf(output_file, "%s_%4.4d_sslo.mb71", lineroot, linenumber);
  48. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. mb7k2ss.c:1997:29: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1015 [-Wformat-overflow=]
  50. sprintf(command, "chmod +x %s", scriptfile);
  51. ^~ ~~~~~~~~~~
  52. mb7k2ss.c:1997:2: note: ‘sprintf’ output between 10 and 1033 bytes into a destination of size 1024
  53. sprintf(command, "chmod +x %s", scriptfile);
  54. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  55. mb7k2ss.c:1414:20: warning: ‘ttime_min_use’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  56. ss_altitude = 0.5 * ssv_use * ttime_min_use;
  57. ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  58. mb7k2ss.c:1172:57: warning: ‘rangelast’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  59. if (range < rangethreshold && (activewaypoint == 0 || range > rangelast) &&
  60. ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
  61. mb7k2ss.c:1431:7: warning: ‘ss_altitude’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  62. mb7k2ss_get_flatbottom_table(verbose, nangle, angle_min, angle_max, navlon, navlat, ss_altitude, 0.0,
  63. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. table_angle, table_xtrack, table_ltrack, table_altitude, table_range,
  65. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  66. &error);
  67. ~~~~~~~
  68. mb7k2ss.c:1181:16: warning: ‘linenumber’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  69. linenumber++;
  70. ~~~~~~~~~~^~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement