Advertisement
Guest User

https://github.com/xverizex/translate

a guest
Oct 4th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. xms@XMs-desktop ~/projects $ git clone https://github.com/xverizex/translate
  2. Клонирование в «translate»…
  3. remote: Counting objects: 115, done.
  4. remote: Compressing objects: 100% (62/62), done.
  5. remote: Total 115 (delta 60), reused 106 (delta 51), pack-reused 0
  6. Получение объектов: 100% (115/115), 170.73 KiB | 0 bytes/s, готово.
  7. Определение изменений: 100% (60/60), готово.
  8. Проверка соединения… готово.
  9. xms@XMs-desktop ~/projects $ cd translate/
  10. xms@XMs-desktop ~/projects/translate $ cat << EOF > CMakeLists.txt
  11. > cmake_minimum_required(VERSION 3.0)
  12. > add_executable(translate main.c)
  13. > EOF
  14. xms@XMs-desktop ~/projects/translate $ mkdir build
  15. xms@XMs-desktop ~/projects/translate $ cd build/
  16. xms@XMs-desktop ~/projects/translate/build $ scan-build cmake ../
  17. scan-build: Using '/usr/bin/x86_64-pc-linux-gnu-clang-3.7' for static analysis
  18. -- The C compiler identification is GNU 4.9.3
  19. -- The CXX compiler identification is GNU 4.9.3
  20. -- Check for working C compiler: /usr/bin/ccc-analyzer
  21. -- Check for working C compiler: /usr/bin/ccc-analyzer -- works
  22. -- Detecting C compiler ABI info
  23. -- Detecting C compiler ABI info - done
  24. -- Detecting C compile features
  25. -- Detecting C compile features - done
  26. -- Check for working CXX compiler: /usr/bin/c++-analyzer
  27. -- Check for working CXX compiler: /usr/bin/c++-analyzer -- works
  28. -- Detecting CXX compiler ABI info
  29. -- Detecting CXX compiler ABI info - done
  30. -- Detecting CXX compile features
  31. -- Detecting CXX compile features - done
  32. -- Configuring done
  33. -- Generating done
  34. -- Build files have been written to: /home/xms/projects/translate/build
  35. scan-build: Removing directory '/tmp/scan-build-2016-10-04-231727-19575-1' because it contains no reports.
  36. scan-build: No bugs found.
  37. xms@XMs-desktop ~/projects/translate/build $ scan-build make
  38. scan-build: Using '/usr/bin/x86_64-pc-linux-gnu-clang-3.7' for static analysis
  39. Scanning dependencies of target translate
  40. [ 50%] Building C object CMakeFiles/translate.dir/main.c.o
  41. /home/xms/projects/translate/main.c:169:4: warning: Potential leak of memory pointed to by 'target'
  42. fclose(dictionary);
  43. ^~~~~~
  44. /home/xms/projects/translate/main.c:406:17: warning: Call to 'calloc' has an allocation size of 0 bytes
  45. currentdir = calloc(punct - start, sizeof(char));
  46. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. /home/xms/projects/translate/main.c:440:2: warning: Potential leak of memory pointed to by 'cpath'
  48. char line[255];
  49. ^~~~~~~~~
  50. /home/xms/projects/translate/main.c:457:10: warning: Dereference of null pointer (loaded from variable 'ptr')
  51. for(;!isprint(*ptr);ptr++);
  52. ^~~~~~~~~~~~~
  53. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  54. # define isprint(c) __isctype((c), _ISprint)
  55. ^~~~~~~~~~~~~~~~~~~~~~~~
  56. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  57. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  58. ^~~
  59. /home/xms/projects/translate/main.c:477:10: warning: Dereference of null pointer (loaded from variable 'ptr')
  60. for(;!isprint(*ptr);ptr++);
  61. ^~~~~~~~~~~~~
  62. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  63. # define isprint(c) __isctype((c), _ISprint)
  64. ^~~~~~~~~~~~~~~~~~~~~~~~
  65. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  66. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  67. ^~~
  68. /home/xms/projects/translate/main.c:497:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  69. for(;!isprint(*ptr);ptr++);
  70. ^~~~~~~~~~~~~
  71. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  72. # define isprint(c) __isctype((c), _ISprint)
  73. ^~~~~~~~~~~~~~~~~~~~~~~~
  74. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  75. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  76. ^~~
  77. /home/xms/projects/translate/main.c:518:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  78. for(;!isprint(*ptr);ptr++);
  79. ^~~~~~~~~~~~~
  80. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  81. # define isprint(c) __isctype((c), _ISprint)
  82. ^~~~~~~~~~~~~~~~~~~~~~~~
  83. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  84. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  85. ^~~
  86. /home/xms/projects/translate/main.c:538:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  87. for(;!isprint(*ptr);ptr++);
  88. ^~~~~~~~~~~~~
  89. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  90. # define isprint(c) __isctype((c), _ISprint)
  91. ^~~~~~~~~~~~~~~~~~~~~~~~
  92. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  93. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  94. ^~~
  95. /home/xms/projects/translate/main.c:559:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  96. for(;!isprint(*ptr);ptr++);
  97. ^~~~~~~~~~~~~
  98. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  99. # define isprint(c) __isctype((c), _ISprint)
  100. ^~~~~~~~~~~~~~~~~~~~~~~~
  101. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  102. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  103. ^~~
  104. /home/xms/projects/translate/main.c:579:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  105. for(;!isprint(*ptr);ptr++);
  106. ^~~~~~~~~~~~~
  107. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  108. # define isprint(c) __isctype((c), _ISprint)
  109. ^~~~~~~~~~~~~~~~~~~~~~~~
  110. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  111. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  112. ^~~
  113. /home/xms/projects/translate/main.c:599:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  114. for(;!isprint(*ptr);ptr++);
  115. ^~~~~~~~~~~~~
  116. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  117. # define isprint(c) __isctype((c), _ISprint)
  118. ^~~~~~~~~~~~~~~~~~~~~~~~
  119. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  120. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  121. ^~~
  122. /home/xms/projects/translate/main.c:619:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  123. for(;!isprint(*ptr);ptr++);
  124. ^~~~~~~~~~~~~
  125. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  126. # define isprint(c) __isctype((c), _ISprint)
  127. ^~~~~~~~~~~~~~~~~~~~~~~~
  128. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  129. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  130. ^~~
  131. /home/xms/projects/translate/main.c:639:11: warning: Dereference of null pointer (loaded from variable 'ptr')
  132. for(;!isprint(*ptr);ptr++);
  133. ^~~~~~~~~~~~~
  134. /usr/include/ctype.h:203:21: note: expanded from macro 'isprint'
  135. # define isprint(c) __isctype((c), _ISprint)
  136. ^~~~~~~~~~~~~~~~~~~~~~~~
  137. /usr/include/ctype.h:89:30: note: expanded from macro '__isctype'
  138. ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type)
  139. ^~~
  140. /home/xms/projects/translate/main.c:674:4: warning: Potential leak of memory pointed to by 'dir'
  141. return NULL;
  142. ^~~~~~~~~~~
  143. 14 warnings generated.
  144. [100%] Linking C executable translate
  145. [100%] Built target translate
  146. scan-build: 14 bugs found.
  147. scan-build: Run 'scan-view /tmp/scan-build-2016-10-04-231745-19789-1' to examine bug reports.
  148. xms@XMs-desktop ~/projects/translate/build $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement