Guest User

Untitled

a guest
Jun 1st, 2017
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.35 KB | None | 0 0
  1. /tmp/select/src/board.c:50:9: warning: Access to field 'up' results in a dereference of a null pointer (loaded from variable 'p') [clang-analyzer-core.NullDereference]
  2. p->up = NULL;
  3. ^
  4. /tmp/select/src/board.c:9:17: note: Null pointer value stored to field 'right'
  5. start->right = calloc ( 1, sizeof ( struct item ) );
  6. ^
  7. /tmp/select/src/board.c:19:19: note: Assuming 'i' is >= 'w'
  8. for ( int i = 0; i < w; i++ )
  9. ^
  10. /tmp/select/src/board.c:19:2: note: Loop condition is false. Execution continues on line 46
  11. for ( int i = 0; i < w; i++ )
  12. ^
  13. /tmp/select/src/board.c:48:19: note: Assuming 'i' is < 'h'
  14. for ( int i = 0; i < h; i++ )
  15. ^
  16. /tmp/select/src/board.c:48:2: note: Loop condition is true. Entering loop body
  17. for ( int i = 0; i < h; i++ )
  18. ^
  19. /tmp/select/src/board.c:51:3: note: Null pointer value stored to 'p'
  20. p = p->right;
  21. ^
  22. /tmp/select/src/board.c:48:19: note: Assuming 'i' is < 'h'
  23. for ( int i = 0; i < h; i++ )
  24. ^
  25. /tmp/select/src/board.c:48:2: note: Loop condition is true. Entering loop body
  26. for ( int i = 0; i < h; i++ )
  27. ^
  28. /tmp/select/src/board.c:50:9: note: Access to field 'up' results in a dereference of a null pointer (loaded from variable 'p')
  29. p->up = NULL;
  30. ^
  31. /tmp/select/src/board.c:63:19: warning: statement should be inside braces [readability-braces-around-statements]
  32. if ( !p || !t ) break;
  33. ^
  34. /tmp/select/src/board.c:71:7: warning: Access to field 'down' results in a dereference of a null pointer (loaded from variable 'l') [clang-analyzer-core.NullDereference]
  35. l = l->down;
  36. ^
  37. /tmp/select/src/board.c:19:19: note: Assuming 'i' is < 'w'
  38. for ( int i = 0; i < w; i++ )
  39. ^
  40. /tmp/select/src/board.c:19:2: note: Loop condition is true. Entering loop body
  41. for ( int i = 0; i < w; i++ )
  42. ^
  43. /tmp/select/src/board.c:23:21: note: Assuming 'ii' is < 'h'
  44. for ( int ii = 0; ii < h; ii ++ )
  45. ^
  46. /tmp/select/src/board.c:23:3: note: Loop condition is true. Entering loop body
  47. for ( int ii = 0; ii < h; ii ++ )
  48. ^
  49. /tmp/select/src/board.c:23:21: note: Assuming 'ii' is >= 'h'
  50. for ( int ii = 0; ii < h; ii ++ )
  51. ^
  52. /tmp/select/src/board.c:23:3: note: Loop condition is false. Execution continues on line 38
  53. for ( int ii = 0; ii < h; ii ++ )
  54. ^
  55. /tmp/select/src/board.c:19:19: note: Assuming 'i' is >= 'w'
  56. for ( int i = 0; i < w; i++ )
  57. ^
  58. /tmp/select/src/board.c:19:2: note: Loop condition is false. Execution continues on line 46
  59. for ( int i = 0; i < w; i++ )
  60. ^
  61. /tmp/select/src/board.c:48:2: note: Loop condition is true. Entering loop body
  62. for ( int i = 0; i < h; i++ )
  63. ^
  64. /tmp/select/src/board.c:48:2: note: Loop condition is false. Execution continues on line 54
  65. /tmp/select/src/board.c:56:2: note: Value assigned to 'l'
  66. l = start->right->down;
  67. ^
  68. /tmp/select/src/board.c:59:2: note: Loop condition is true. Entering loop body
  69. for ( int i = 0; i < w ; i++ )
  70. ^
  71. /tmp/select/src/board.c:61:3: note: Loop condition is true. Entering loop body
  72. for ( int ii = 0; ii < h; ii ++ )
  73. ^
  74. /tmp/select/src/board.c:63:9: note: Left side of '||' is false
  75. if ( !p || !t ) break;
  76. ^
  77. /tmp/select/src/board.c:63:15: note: Assuming 't' is null
  78. if ( !p || !t ) break;
  79. ^
  80. /tmp/select/src/board.c:63:4: note: Taking true branch
  81. if ( !p || !t ) break;
  82. ^
  83. /tmp/select/src/board.c:63:20: note: Execution continues on line 70
  84. if ( !p || !t ) break;
  85. ^
  86. /tmp/select/src/board.c:71:7: note: Access to field 'down' results in a dereference of a null pointer (loaded from variable 'l')
  87. l = l->down;
  88. ^
  89. /tmp/select/src/board.c:83:8: warning: Access to field 'right' results in a dereference of a null pointer (loaded from variable 'p') [clang-analyzer-core.NullDereference]
  90. p = p->right;
  91. ^
  92. /tmp/select/src/board.c:9:17: note: Null pointer value stored to field 'right'
  93. start->right = calloc ( 1, sizeof ( struct item ) );
  94. ^
  95. /tmp/select/src/board.c:19:19: note: Assuming 'i' is < 'w'
  96. for ( int i = 0; i < w; i++ )
  97. ^
  98. /tmp/select/src/board.c:19:2: note: Loop condition is true. Entering loop body
  99. for ( int i = 0; i < w; i++ )
  100. ^
  101. /tmp/select/src/board.c:23:21: note: Assuming 'ii' is >= 'h'
  102. for ( int ii = 0; ii < h; ii ++ )
  103. ^
  104. /tmp/select/src/board.c:23:3: note: Loop condition is false. Execution continues on line 38
  105. for ( int ii = 0; ii < h; ii ++ )
  106. ^
  107. /tmp/select/src/board.c:19:19: note: Assuming 'i' is >= 'w'
  108. for ( int i = 0; i < w; i++ )
  109. ^
  110. /tmp/select/src/board.c:19:2: note: Loop condition is false. Execution continues on line 46
  111. for ( int i = 0; i < w; i++ )
  112. ^
  113. /tmp/select/src/board.c:48:2: note: Loop condition is false. Execution continues on line 54
  114. for ( int i = 0; i < h; i++ )
  115. ^
  116. /tmp/select/src/board.c:59:2: note: Loop condition is true. Entering loop body
  117. for ( int i = 0; i < w ; i++ )
  118. ^
  119. /tmp/select/src/board.c:61:3: note: Loop condition is false. Execution continues on line 70
  120. for ( int ii = 0; ii < h; ii ++ )
  121. ^
  122. /tmp/select/src/board.c:59:2: note: Loop condition is false. Execution continues on line 77
  123. for ( int i = 0; i < w ; i++ )
  124. ^
  125. /tmp/select/src/board.c:79:2: note: Loop condition is true. Entering loop body
  126. for ( int i = 0; i < w; i++ )
  127. ^
  128. /tmp/select/src/board.c:81:21: note: Assuming the condition is true
  129. for ( int ii = 0; ii < h-1; ii++ )
  130. ^
  131. /tmp/select/src/board.c:81:3: note: Loop condition is true. Entering loop body
  132. for ( int ii = 0; ii < h-1; ii++ )
  133. ^
  134. /tmp/select/src/board.c:83:4: note: Null pointer value stored to 'p'
  135. p = p->right;
  136. ^
  137. /tmp/select/src/board.c:81:3: note: Loop condition is true. Entering loop body
  138. for ( int ii = 0; ii < h-1; ii++ )
  139. ^
  140. /tmp/select/src/board.c:83:8: note: Access to field 'right' results in a dereference of a null pointer (loaded from variable 'p')
  141. p = p->right;
  142. ^
  143. /tmp/select/src/board.c:99:11: warning: Access to field 'down' results in a dereference of a null pointer (loaded from variable 'p') [clang-analyzer-core.NullDereference]
  144. p->down = NULL;
  145. ^
  146. /tmp/select/src/board.c:19:19: note: Assuming 'i' is >= 'w'
  147. for ( int i = 0; i < w; i++ )
  148. ^
  149. /tmp/select/src/board.c:19:2: note: Loop condition is false. Execution continues on line 46
  150. for ( int i = 0; i < w; i++ )
  151. ^
  152. /tmp/select/src/board.c:48:19: note: Assuming 'i' is < 'h'
  153. for ( int i = 0; i < h; i++ )
  154. ^
  155. /tmp/select/src/board.c:48:2: note: Loop condition is true. Entering loop body
  156. for ( int i = 0; i < h; i++ )
  157. ^
  158. /tmp/select/src/board.c:50:3: note: Null pointer value stored to field 'up'
  159. p->up = NULL;
  160. ^
  161. /tmp/select/src/board.c:48:19: note: Assuming 'i' is >= 'h'
  162. for ( int i = 0; i < h; i++ )
  163. ^
  164. /tmp/select/src/board.c:48:2: note: Loop condition is false. Execution continues on line 54
  165. for ( int i = 0; i < h; i++ )
  166. ^
  167. /tmp/select/src/board.c:59:2: note: Loop condition is false. Execution continues on line 77
  168. for ( int i = 0; i < w ; i++ )
  169. ^
  170. /tmp/select/src/board.c:79:2: note: Loop condition is false. Execution continues on line 91
  171. for ( int i = 0; i < w; i++ )
  172. ^
  173. /tmp/select/src/board.c:92:2: note: Loop condition is false. Execution continues on line 96
  174. for ( int i = 0; i < w; i++ )
  175. ^
  176. /tmp/select/src/board.c:96:2: note: Null pointer value stored to 'p'
  177. p = p->up;
  178. ^
  179. /tmp/select/src/board.c:97:2: note: Loop condition is true. Entering loop body
  180. for ( int i = 0; i < h; i++ )
  181. ^
  182. /tmp/select/src/board.c:99:11: note: Access to field 'down' results in a dereference of a null pointer (loaded from variable 'p')
  183. p->down = NULL;
  184. ^
  185. /tmp/select/src/main.c:6:16: warning: parameter 'argc' is unused [misc-unused-parameters]
  186. int main ( int argc, char *argv[] )
  187. ^~~~~
  188. /*argc*/
  189. /tmp/select/src/main.c:6:28: warning: parameter 'argv' is unused [misc-unused-parameters]
  190. int main ( int argc, char *argv[] )
  191. ^~~~~~
  192. /*argv*/
Advertisement
Add Comment
Please, Sign In to add comment