Newly introduced findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
crates/goose-cli/src/session/streaming_buffer.rs:419:17: warning: this `if` can be collapsed into the outer `match`
#      |
#  419 | /                 if !state.in_link_text && !state.in_image_alt {
#  420 | |                     state.in_link_text = true;
#  421 | |                 }
#      | |_________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#      = note: `#[warn(clippy::collapsible_match)]` on by default
#  help: collapse nested if block
#      |
#  418 ~             "["
#  419 ~                 if !state.in_link_text && !state.in_image_alt => {
#  420 |                     state.in_link_text = true;
#  421 ~                 }
#      |

Error: CLIPPY_WARNING: [#def2]
crates/goose-cli/src/session/streaming_buffer.rs:434:17: warning: this `if` can be collapsed into the outer `match`
#      |
#  434 | /                 if state.in_link_url {
#  435 | |                     state.in_link_url = false;
#  436 | |                 }
#      | |_________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#  help: collapse nested if block
#      |
#  433 ~             ")"
#  434 ~                 if state.in_link_url => {
#  435 |                     state.in_link_url = false;
#  436 ~                 }
#      |

Error: CLIPPY_WARNING: [#def3]
crates/goose-server/src/routes/session.rs:457:11: warning: unused variable: `state`
#      |
#  457 |     State(state): State<Arc<AppState>>,
#      |           ^^^^^ help: if this is intentional, prefix it with an underscore: `_state`
#      |
#      = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

Error: CLIPPY_WARNING: [#def4]
crates/goose-server/src/routes/session.rs:458:10: warning: unused variable: `request`
#      |
#  458 |     Json(request): Json<ImportSessionNostrRequest>,
#      |          ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_request`

Error: CLIPPY_WARNING: [#def5]
crates/goose/src/acp/provider.rs:1219:17: warning: this `if` can be collapsed into the outer `match`
#       |
#  1219 | /                 if !capabilities.http {
#  1220 | |                     tracing::debug!(
#  1221 | |                         name = http.name,
#  1222 | |                         "skipping HTTP server, agent lacks capability"
#  ...    |
#  1226 | |                     true
#  1227 | |                 }
#       | |_________________^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#       = note: `#[warn(clippy::collapsible_match)]` on by default
#  help: collapse nested if block
#       |
#  1218 ~             McpServer::Http(http)
#  1219 ~                 if !capabilities.http => {
#  1220 |                     tracing::debug!(
#   ...
#  1224 |                     false
#  1225 ~                 }
#       |

Error: CLIPPY_WARNING: [#def6]
crates/goose/src/agents/agent.rs:1994:45: warning: called `unwrap_err` on `request.tool_call` after checking its variant with `is_ok`
#       |
#  1968 | ...                   if request.tool_call.is_ok() {
#       |                       ---------------------------- help: try: `if let Err(<item>) = &request.tool_call`
#  ...
#  1994 | ...                           request.tool_call.as_ref().unwrap_err(),
#       |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_unwrap
#       = note: `#[warn(clippy::unnecessary_unwrap)]` on by default

Error: CLIPPY_WARNING: [#def7]
crates/goose/src/agents/platform_extensions/analyze/format.rs:51:9: warning: consider using `sort_by_key`
#     |
#  51 |         langs.sort_by(|a, b| b.1.cmp(&a.1));
#     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
#     = note: `#[warn(clippy::unnecessary_sort_by)]` on by default
#  help: try
#     |
#  51 -         langs.sort_by(|a, b| b.1.cmp(&a.1));
#  51 +         langs.sort_by_key(|b| std::cmp::Reverse(b.1));
#     |

Error: CLIPPY_WARNING: [#def8]
crates/goose/src/agents/platform_extensions/orchestrator.rs:185:9: warning: consider using `sort_by_key`
#      |
#  185 |         sessions.sort_by(|a, b| b.updated_at.cmp(&a.updated_at));
#      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#unnecessary_sort_by
#  help: try
#      |
#  185 -         sessions.sort_by(|a, b| b.updated_at.cmp(&a.updated_at));
#  185 +         sessions.sort_by_key(|b| std::cmp::Reverse(b.updated_at));
#      |

Error: CLIPPY_WARNING: [#def9]
crates/goose/src/gateway/handler.rs:397:37: warning: this `if` can be collapsed into the outer `match`
#      |
#  397 | / ...                   if !t.text.is_empty() {
#  398 | | ...                       pending_text.push_str(&t.text);
#  399 | | ...                   }
#      | |_______________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#  help: collapse nested if block
#      |
#  396 ~                                 MessageContent::Text(t)
#  397 ~                                     if !t.text.is_empty() => {
#  398 |                                         pending_text.push_str(&t.text);
#  399 ~                                     }
#      |

Error: CLIPPY_WARNING: [#def10]
crates/goose/src/providers/base.rs:242:17: warning: this `if` can be collapsed into the outer `match`
#      |
#  242 | /                 if byte == quote_byte {
#  243 | |                     quote = None;
#  244 | |                 }
#      | |_________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#  help: collapse nested if block
#      |
#  241 ~             Some(quote_byte)
#  242 ~                 if byte == quote_byte => {
#  243 |                     quote = None;
#  244 ~                 }
#      |

Error: CLIPPY_WARNING: [#def11]
crates/goose/src/providers/base.rs:292:17: warning: this `if` can be collapsed into the outer `match`
#      |
#  292 | /                 if byte == quote_byte {
#  293 | |                     quote = None;
#  294 | |                 }
#      | |_________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#  help: collapse nested if block
#      |
#  291 ~             Some(quote_byte)
#  292 ~                 if byte == quote_byte => {
#  293 |                     quote = None;
#  294 ~                 }
#      |

Error: CLIPPY_WARNING: [#def12]
crates/goose/src/providers/utils.rs:580:17: warning: this `if` can be collapsed into the outer `match`
#      |
#  580 | /                 if closers.last() == Some(&c) {
#  581 | |                     closers.pop();
#  582 | |                 }
#      | |_________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#collapsible_match
#  help: collapse nested if block
#      |
#  579 ~             '}' | ']'
#  580 ~                 if closers.last() == Some(&c) => {
#  581 |                     closers.pop();
#  582 ~                 }
#      |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
goose-1.35.0/vendor/sys-info-0.9.1/c/linux.c: scope_hint: In function 'seen_before'
goose-1.35.0/vendor/sys-info-0.9.1/c/linux.c:130:24: warning[-Wanalyzer-malloc-leak]: leak of 'np'
#  128|   	for (hashval=0; *s != '\0'; s++)
#  129|   		hashval = *s + 31 * hashval;
#  130|-> 	return hashval % DFHASHSIZE;
#  131|   }
#  132|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def14]
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:408:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '*(Scanner *)payload.delimiters.contents' where non-null expected
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:396:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:396:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:406:13: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:406:13: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h: scope_hint: In function 'tree_sitter_python_external_scanner_deserialize'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:188:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:188:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:406:13: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c: scope_hint: In function 'tree_sitter_python_external_scanner_deserialize'
/usr/include/string.h:47:14: note: argument 1 of 'memcpy' must be non-null
#  406|               array_reserve(&scanner->delimiters, delimiter_count);
#  407|               scanner->delimiters.size = delimiter_count;
#  408|->             memcpy(scanner->delimiters.contents, &buffer[size], delimiter_count);
#  409|               size += delimiter_count;
#  410|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c: scope_hint: In function 'tree_sitter_python_external_scanner_deserialize'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:65:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*(Scanner *)payload.indents.contents + (long unsigned int)*(Scanner *)payload.indents.size * 2'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:397:5: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:395:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:395:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:396:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:165:5: note: in expansion of macro 'ts_free'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:396:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:397:5: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h: scope_hint: In function 'tree_sitter_python_external_scanner_deserialize'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:188:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/tree_sitter/array.h:188:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c: scope_hint: In function 'tree_sitter_python_external_scanner_deserialize'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:397:5: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-python-0.25.0/src/scanner.c:397:5: note: in expansion of macro 'array_push'
#   63|   #define array_push(self, element)                            \
#   64|     (_array__grow((Array *)(self), 1, array_elem_size(self)), \
#   65|->    (self)->contents[(self)->size++] = (element))
#   66|   
#   67|   /// Increase the array's size by `count` elements.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:154:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'heredoc.word.contents' where non-null expected
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:14: included_from: Included from here.
/usr/include/string.h:47:14: note: argument 1 of 'memcpy' must be non-null
#  152|           uint8_t word_length = buffer[size++];
#  153|           array_reserve(&heredoc.word, word_length);
#  154|->         memcpy(heredoc.word.contents, &buffer[size], word_length);
#  155|           heredoc.word.size = word_length;
#  156|           size += word_length;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:161:1: warning[-Wanalyzer-malloc-leak]: leak of 'heredoc.word.contents'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:164:5: note: in expansion of macro 'ts_free'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
#  159|   
#  160|       assert(size == length);
#  161|-> }
#  162|   
#  163|   static inline bool scan_whitespace(Scanner *scanner, TSLexer *lexer, const bool *valid_symbols) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:2: included_from: Included from here.
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:64:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*scanner.literal_stack.contents + (long unsigned int)*scanner.literal_stack.size * 20'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:141:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:1: included_from: Included from here.
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:164:5: note: in expansion of macro 'ts_free'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:141:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:141:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:141:9: note: in expansion of macro 'array_push'
#   62|   #define array_push(self, element)                            \
#   63|     (_array__grow((Array *)(self), 1, array_elem_size(self)), \
#   64|->    (self)->contents[(self)->size++] = (element))
#   65|   
#   66|   /// Increase the array's size by `count` elements.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:64:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*scanner.open_heredocs.contents + (long unsigned int)*scanner.open_heredocs.size * 24'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:157:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:164:5: note: in expansion of macro 'ts_free'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:83:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:164:5: note: in expansion of macro 'ts_free'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:87:5: note: in expansion of macro 'array_delete'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:153:9: note: in expansion of macro 'array_reserve'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:157:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'deserialize'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:157:9: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:157:9: note: in expansion of macro 'array_push'
#   62|   #define array_push(self, element)                            \
#   63|     (_array__grow((Array *)(self), 1, array_elem_size(self)), \
#   64|->    (self)->contents[(self)->size++] = (element))
#   65|   
#   66|   /// Increase the array's size by `count` elements.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'scan_heredoc_word'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:64:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'word.contents'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:608:17: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'scan_heredoc_word'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'scan_heredoc_word'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:608:17: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:608:17: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h: scope_hint: In function 'scan_heredoc_word'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/tree_sitter/array.h:187:24: note: in expansion of macro 'ts_malloc'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c: scope_hint: In function 'scan_heredoc_word'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:608:17: note: in expansion of macro 'array_push'
goose-1.35.0/vendor/tree-sitter-ruby-0.23.1/src/scanner.c:608:17: note: in expansion of macro 'array_push'
#   62|   #define array_push(self, element)                            \
#   63|     (_array__grow((Array *)(self), 1, array_elem_size(self)), \
#   64|->    (self)->contents[(self)->size++] = (element))
#   65|   
#   66|   /// Increase the array's size by `count` elements.

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-232.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegoose-1.23.2-1.20260521165302153583.main
diffbase-store-results-to/tmp/tmp5u84kpsj/goose-1.23.2-1.20260521165302153583.main.tar.xz
diffbase-time-created2026-05-27 12:43:20
diffbase-time-finished2026-05-27 13:40:42
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmp5u84kpsj/goose-1.23.2-1.20260521165302153583.main.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmp5u84kpsj/goose-1.23.2-1.20260521165302153583.main.src.rpm'
diffbase-tool-versioncsmock-3.8.5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-232.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegoose-1.35.0-1.20260527110730443224.pr27
store-results-to/tmp/tmpma1kulbn/goose-1.35.0-1.20260527110730443224.pr27.tar.xz
time-created2026-05-27 13:45:44
time-finished2026-05-27 14:40:20
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpma1kulbn/goose-1.35.0-1.20260527110730443224.pr27.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '/tmp/tmpma1kulbn/goose-1.35.0-1.20260527110730443224.pr27.src.rpm'
tool-versioncsmock-3.8.5-1.el9