idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
9,400
partition_create_device_added_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreatePartitionData *data = user_data; Device *device; /* check the device added is the partition we've created */ device = daemon_local_find_by_o...
+Info
0
partition_create_device_added_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreatePartitionData *data = user_data; Device *device; /* check the device added is the partition we've created */ device = daemon_local_find_by_o...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,401
partition_create_device_not_seen_cb (gpointer user_data) { CreatePartitionData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating partition: timeout (10s) waiting for partition to show up"); g_signal_handler_disconnect (data->device->priv->daemon, data->device_added_signal_handler_id);...
+Info
0
partition_create_device_not_seen_cb (gpointer user_data) { CreatePartitionData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating partition: timeout (10s) waiting for partition to show up"); g_signal_handler_disconnect (data->device->priv->daemon, data->device_added_signal_handler_id);...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,402
partition_create_filesystem_create_hook (DBusGMethodInvocation *context, Device *device, gboolean filesystem_create_succeeded, gpointer user_data) { if (!filesystem_create_succeeded) { ...
+Info
0
partition_create_filesystem_create_hook (DBusGMethodInvocation *context, Device *device, gboolean filesystem_create_succeeded, gpointer user_data) { if (!filesystem_create_succeeded) { ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,403
partition_create_found_device (Device *device, CreatePartitionData *data) { if (strlen (data->fstype) > 0) { device_filesystem_create_internal (device, data->fstype, data->fsoptions, ...
+Info
0
partition_create_found_device (Device *device, CreatePartitionData *data) { if (strlen (data->fstype) > 0) { device_filesystem_create_internal (device, data->fstype, data->fsoptions, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,404
partition_modify_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
+Info
0
partition_modify_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, const char *stdout, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,405
partition_modify_data_new (DBusGMethodInvocation *context, Device *device, Device *enclosing_device, const char *type, const char *label, char **flags) { ModifyPartitionData *data; ...
+Info
0
partition_modify_data_new (DBusGMethodInvocation *context, Device *device, Device *enclosing_device, const char *type, const char *label, char **flags) { ModifyPartitionData *data; ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,406
partition_modify_data_unref (ModifyPartitionData *data) { g_object_unref (data->device); g_object_unref (data->enclosing_device); g_free (data->type); g_free (data->label); g_free (data->flags); g_free (data); }
+Info
0
partition_modify_data_unref (ModifyPartitionData *data) { g_object_unref (data->device); g_object_unref (data->enclosing_device); g_free (data->type); g_free (data->label); g_free (data->flags); g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,407
partition_table_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
+Info
0
partition_table_create_completed_cb (DBusGMethodInvocation *context, Device *device, gboolean job_was_cancelled, int status, const char *stderr, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,408
partition_table_create_data_new (DBusGMethodInvocation *context, Device *device, const char *scheme) { CreatePartitionTableData *data; data = g_new0 (CreatePartitionTableData, 1); data->refcount = 1; data->context = context; data->device = g_...
+Info
0
partition_table_create_data_new (DBusGMethodInvocation *context, Device *device, const char *scheme) { CreatePartitionTableData *data; data = g_new0 (CreatePartitionTableData, 1); data->refcount = 1; data->context = context; data->device = g_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,409
partition_table_create_data_ref (CreatePartitionTableData *data) { data->refcount++; return data; }
+Info
0
partition_table_create_data_ref (CreatePartitionTableData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,410
partition_table_create_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreatePartitionTableData *data = user_data; Device *device; device = daemon_local_find_by_object_path (daemon, object_path);...
+Info
0
partition_table_create_device_changed_cb (Daemon *daemon, const char *object_path, gpointer user_data) { CreatePartitionTableData *data = user_data; Device *device; device = daemon_local_find_by_object_path (daemon, object_path);...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,411
partition_table_create_device_not_changed_cb (gpointer user_data) { CreatePartitionTableData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating partition table: timeout (10s) waiting for change"); g_signal_handler_disconnect (data->device->priv->daemon, data->device_changed_signal_hand...
+Info
0
partition_table_create_device_not_changed_cb (gpointer user_data) { CreatePartitionTableData *data = user_data; throw_error (data->context, ERROR_FAILED, "Error creating partition table: timeout (10s) waiting for change"); g_signal_handler_disconnect (data->device->priv->daemon, data->device_changed_signal_hand...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,412
poll_syncing_md_device (gpointer user_data) { Device *device = DEVICE (user_data); g_print ("**** POLL SYNCING MD %s\n", device->priv->native_path); device->priv->linux_md_poll_timeout_id = 0; daemon_local_synthesize_changed (device->priv->daemon, device); return FALSE; }
+Info
0
poll_syncing_md_device (gpointer user_data) { Device *device = DEVICE (user_data); g_print ("**** POLL SYNCING MD %s\n", device->priv->native_path); device->priv->linux_md_poll_timeout_id = 0; daemon_local_synthesize_changed (device->priv->daemon, device); return FALSE; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,413
prepend_default_mount_options (const FSMountOptions *fsmo, uid_t caller_uid, char **given_options) { GPtrArray *options; int n; char *s; gid_t gid; options = g_ptr_array_new (); if (fsmo != NULL) { for (n = 0; fsmo->defaults != NULL &&...
+Info
0
prepend_default_mount_options (const FSMountOptions *fsmo, uid_t caller_uid, char **given_options) { GPtrArray *options; int n; char *s; gid_t gid; options = g_ptr_array_new (); if (fsmo != NULL) { for (n = 0; fsmo->defaults != NULL &&...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,414
ptr_array_has_string (GPtrArray *p, const gchar *str) { guint n; gboolean ret; ret = FALSE; for (n = 0; n < p->len; n++) { if (g_strcmp0 (p->pdata[n], str) == 0) { ret = TRUE; goto out; } } out: return ret; }
+Info
0
ptr_array_has_string (GPtrArray *p, const gchar *str) { guint n; gboolean ret; ret = FALSE; for (n = 0; n < p->len; n++) { if (g_strcmp0 (p->pdata[n], str) == 0) { ret = TRUE; goto out; } } out: return ret; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,415
ptr_str_array_compare (const gchar **a, const gchar **b) { return g_strcmp0 (*a, *b); }
+Info
0
ptr_str_array_compare (const gchar **a, const gchar **b) { return g_strcmp0 (*a, *b); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,416
register_disks_device (Device *device) { DBusConnection *connection; GError *error = NULL; device->priv->system_bus_connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); if (device->priv->system_bus_connection == NULL) { if (error != NULL) { g_critical ("error getting system bus: %...
+Info
0
register_disks_device (Device *device) { DBusConnection *connection; GError *error = NULL; device->priv->system_bus_connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error); if (device->priv->system_bus_connection == NULL) { if (error != NULL) { g_critical ("error getting system bus: %...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,417
remove_component_data_new (DBusGMethodInvocation *context, Device *slave, char **options) { RemoveComponentData *data; data = g_new0 (RemoveComponentData, 1); data->refcount = 1; data->context = context; data->slave = g_object_ref (slave); data->option...
+Info
0
remove_component_data_new (DBusGMethodInvocation *context, Device *slave, char **options) { RemoveComponentData *data; data = g_new0 (RemoveComponentData, 1); data->refcount = 1; data->context = context; data->slave = g_object_ref (slave); data->option...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,418
remove_component_data_ref (RemoveComponentData *data) { data->refcount++; return data; }
+Info
0
remove_component_data_ref (RemoveComponentData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,419
remove_component_data_unref (RemoveComponentData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->slave); g_free (data->options); g_free (data); } }
+Info
0
remove_component_data_unref (RemoveComponentData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->slave); g_free (data->options); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,420
spindown_inhibitor_disconnected_cb (Inhibitor *inhibitor, Device *device) { device->priv->spindown_inhibitors = g_list_remove (device->priv->spindown_inhibitors, inhibitor); g_signal_handlers_disconnect_by_func (inhibitor, spindown_inhibitor_disconnected_cb, device); g_object_u...
+Info
0
spindown_inhibitor_disconnected_cb (Inhibitor *inhibitor, Device *device) { device->priv->spindown_inhibitors = g_list_remove (device->priv->spindown_inhibitors, inhibitor); g_signal_handlers_disconnect_by_func (inhibitor, spindown_inhibitor_disconnected_cb, device); g_object_u...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,421
sysfs_file_exists (const char *dir, const char *attribute) { gboolean result; char *filename; result = FALSE; filename = g_build_filename (dir, attribute, NULL); if (g_file_test (filename, G_FILE_TEST_EXISTS)) { result = TRUE; } g_free (filename); return result; }
+Info
0
sysfs_file_exists (const char *dir, const char *attribute) { gboolean result; char *filename; result = FALSE; filename = g_build_filename (dir, attribute, NULL); if (g_file_test (filename, G_FILE_TEST_EXISTS)) { result = TRUE; } g_free (filename); return result; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,422
sysfs_get_double (const char *dir, const char *attribute) { double result; char *contents; char *filename; result = 0.0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = atof (contents); g_free (conte...
+Info
0
sysfs_get_double (const char *dir, const char *attribute) { double result; char *contents; char *filename; result = 0.0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = atof (contents); g_free (conte...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,423
sysfs_get_int (const char *dir, const char *attribute) { int result; char *contents; char *filename; result = 0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = strtol (contents, NULL, 0); g_free (conte...
+Info
0
sysfs_get_int (const char *dir, const char *attribute) { int result; char *contents; char *filename; result = 0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = strtol (contents, NULL, 0); g_free (conte...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,424
sysfs_get_string (const char *dir, const char *attribute) { char *result; char *filename; result = NULL; filename = g_build_filename (dir, attribute, NULL); if (!g_file_get_contents (filename, &result, NULL, NULL)) { result = g_strdup (""); } g_free (filename); return res...
+Info
0
sysfs_get_string (const char *dir, const char *attribute) { char *result; char *filename; result = NULL; filename = g_build_filename (dir, attribute, NULL); if (!g_file_get_contents (filename, &result, NULL, NULL)) { result = g_strdup (""); } g_free (filename); return res...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,425
sysfs_get_uint64 (const char *dir, const char *attribute) { guint64 result; char *contents; char *filename; result = 0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = strtoll (contents, NULL, 0); g_...
+Info
0
sysfs_get_uint64 (const char *dir, const char *attribute) { guint64 result; char *contents; char *filename; result = 0; filename = g_build_filename (dir, attribute, NULL); if (g_file_get_contents (filename, &contents, NULL, NULL)) { result = strtoll (contents, NULL, 0); g_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,426
sysfs_resolve_link (const char *sysfs_path, const char *name) { char *full_path; char link_path[PATH_MAX]; char resolved_path[PATH_MAX]; ssize_t num; gboolean found_it; found_it = FALSE; full_path = g_build_filename (sysfs_path, name, NULL); num = readlink (full_path, link_path, s...
+Info
0
sysfs_resolve_link (const char *sysfs_path, const char *name) { char *full_path; char link_path[PATH_MAX]; char resolved_path[PATH_MAX]; ssize_t num; gboolean found_it; found_it = FALSE; full_path = g_build_filename (sysfs_path, name, NULL); num = readlink (full_path, link_path, s...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,427
throw_error (DBusGMethodInvocation *context, int error_code, const char *format, ...) { GError *error; va_list args; char *message; if (context == NULL) return TRUE; va_start (args, format); message = g_strdup_vprintf (format, args); va_end (args); error = g...
+Info
0
throw_error (DBusGMethodInvocation *context, int error_code, const char *format, ...) { GError *error; va_list args; char *message; if (context == NULL) return TRUE; va_start (args, format); message = g_strdup_vprintf (format, args); va_end (args); error = g...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,428
unlock_encryption_data_new (DBusGMethodInvocation *context, Device *device, UnlockEncryptionHookFunc hook_func, gpointer hook_user_data) { UnlockEncryptionData *data; data = g_new0 (UnlockEncryptionData, 1); data->refcount = 1; ...
+Info
0
unlock_encryption_data_new (DBusGMethodInvocation *context, Device *device, UnlockEncryptionHookFunc hook_func, gpointer hook_user_data) { UnlockEncryptionData *data; data = g_new0 (UnlockEncryptionData, 1); data->refcount = 1; ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,429
unlock_encryption_data_ref (UnlockEncryptionData *data) { data->refcount++; return data; }
+Info
0
unlock_encryption_data_ref (UnlockEncryptionData *data) { data->refcount++; return data; }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,430
unlock_encryption_data_unref (UnlockEncryptionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->device); g_free (data); } }
+Info
0
unlock_encryption_data_unref (UnlockEncryptionData *data) { data->refcount--; if (data->refcount == 0) { g_object_unref (data->device); g_free (data); } }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,431
update_info (Device *device) { char *s; guint n; gboolean ret; char *path; GDir *dir; const char *name; GList *l; GList *old_slaves_objpath; GList *old_holders_objpath; GList *cur_slaves_objpath; GList *cur_holders_objpath; GList *added_objpath; GList *removed_objpath; GPtrArray *symlinks_by...
+Info
0
update_info (Device *device) { char *s; guint n; gboolean ret; char *path; GDir *dir; const char *name; GList *l; GList *old_slaves_objpath; GList *old_holders_objpath; GList *cur_slaves_objpath; GList *cur_holders_objpath; GList *added_objpath; GList *removed_objpath; GPtrArray *symlinks_by...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,432
update_info_drive_adapter (Device *device) { Adapter *adapter; const gchar *adapter_object_path; adapter_object_path = NULL; adapter = daemon_local_find_enclosing_adapter (device->priv->daemon, device->priv->native_path); if (adapter != NULL) { adapter_object_path = adapter_local_get_object_path (...
+Info
0
update_info_drive_adapter (Device *device) { Adapter *adapter; const gchar *adapter_object_path; adapter_object_path = NULL; adapter = daemon_local_find_enclosing_adapter (device->priv->daemon, device->priv->native_path); if (adapter != NULL) { adapter_object_path = adapter_local_get_object_path (...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,433
update_info_drive_ata_smart (Device *device) { gboolean ata_smart_is_available; ata_smart_is_available = FALSE; if (device->priv->device_is_drive && g_udev_device_has_property (device->priv->d, "UDISKS_ATA_SMART_IS_AVAILABLE")) ata_smart_is_available = g_udev_device_get_property_as_boolean (device->priv->d, ...
+Info
0
update_info_drive_ata_smart (Device *device) { gboolean ata_smart_is_available; ata_smart_is_available = FALSE; if (device->priv->device_is_drive && g_udev_device_has_property (device->priv->d, "UDISKS_ATA_SMART_IS_AVAILABLE")) ata_smart_is_available = g_udev_device_get_property_as_boolean (device->priv->d, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,434
update_info_drive_ports (Device *device) { GList *ports; GList *l; GPtrArray *p; ports = daemon_local_find_enclosing_ports (device->priv->daemon, device->priv->native_path); p = g_ptr_array_new (); for (l = ports; l != NULL; l = l->next) { Port *port = PORT (l->data); g_ptr_array_add (p, ...
+Info
0
update_info_drive_ports (Device *device) { GList *ports; GList *l; GPtrArray *p; ports = daemon_local_find_enclosing_ports (device->priv->daemon, device->priv->native_path); p = g_ptr_array_new (); for (l = ports; l != NULL; l = l->next) { Port *port = PORT (l->data); g_ptr_array_add (p, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,435
update_info_drive_similar_devices (Device *device) { GList *devices; GList *l; GPtrArray *p; p = g_ptr_array_new (); if (!device->priv->device_is_drive) goto out; /* We need non-empty SERIAL and WWN for this to work */ if ((device->priv->drive_serial == NULL || strlen (device->priv->drive_serial) =...
+Info
0
update_info_drive_similar_devices (Device *device) { GList *devices; GList *l; GPtrArray *p; p = g_ptr_array_new (); if (!device->priv->device_is_drive) goto out; /* We need non-empty SERIAL and WWN for this to work */ if ((device->priv->drive_serial == NULL || strlen (device->priv->drive_serial) =...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,436
update_info_id (Device *device) { gchar *decoded_string; const gchar *partition_scheme; gint partition_type; partition_scheme = g_udev_device_get_property (device->priv->d, "UDISKS_PARTITION_SCHEME"); partition_type = g_udev_device_get_property_as_int (device->priv->d, "UDISKS_PARTITION_TYPE"); if (g_strcm...
+Info
0
update_info_id (Device *device) { gchar *decoded_string; const gchar *partition_scheme; gint partition_type; partition_scheme = g_udev_device_get_property (device->priv->d, "UDISKS_PARTITION_SCHEME"); partition_type = g_udev_device_get_property_as_int (device->priv->d, "UDISKS_PARTITION_TYPE"); if (g_strcm...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,437
update_info_in_idle (Device *device) { UpdateInfoInIdleData *data; data = g_new0 (UpdateInfoInIdleData, 1); data->device = device; data->idle_id = g_idle_add_full (G_PRIORITY_HIGH_IDLE, update_info_in_idle_cb, data, ...
+Info
0
update_info_in_idle (Device *device) { UpdateInfoInIdleData *data; data = g_new0 (UpdateInfoInIdleData, 1); data->device = device; data->idle_id = g_idle_add_full (G_PRIORITY_HIGH_IDLE, update_info_in_idle_cb, data, ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,438
update_info_in_idle_cb (gpointer user_data) { UpdateInfoInIdleData *data = user_data; /* this indirectly calls update_info and also removes the device * if it wants to be removed (e.g. if update_info() returns FALSE) */ daemon_local_synthesize_changed (data->device->priv->daemon, data->device); return F...
+Info
0
update_info_in_idle_cb (gpointer user_data) { UpdateInfoInIdleData *data = user_data; /* this indirectly calls update_info and also removes the device * if it wants to be removed (e.g. if update_info() returns FALSE) */ daemon_local_synthesize_changed (data->device->priv->daemon, data->device); return F...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,439
update_info_in_idle_data_free (UpdateInfoInIdleData *data) { g_object_weak_unref (G_OBJECT (data->device), update_info_in_idle_device_unreffed, data); g_free (data); }
+Info
0
update_info_in_idle_data_free (UpdateInfoInIdleData *data) { g_object_weak_unref (G_OBJECT (data->device), update_info_in_idle_device_unreffed, data); g_free (data); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,440
update_info_in_idle_device_unreffed (gpointer user_data, GObject *where_the_object_was) { UpdateInfoInIdleData *data = user_data; g_source_remove (data->idle_id); }
+Info
0
update_info_in_idle_device_unreffed (gpointer user_data, GObject *where_the_object_was) { UpdateInfoInIdleData *data = user_data; g_source_remove (data->idle_id); }
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,441
update_info_is_system_internal (Device *device) { gboolean is_system_internal; /* TODO: make it possible to override this property from a udev property. */ /* start out by assuming the device is system internal, then adjust depending on what kind of * device we are dealing with */ is_system_internal ...
+Info
0
update_info_is_system_internal (Device *device) { gboolean is_system_internal; /* TODO: make it possible to override this property from a udev property. */ /* start out by assuming the device is system internal, then adjust depending on what kind of * device we are dealing with */ is_system_internal ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,442
update_info_linux_loop (Device *device) { gboolean ret; gint fd; struct loop_info64 loop_info_buf; gboolean is_loop; gchar *s; gchar *s2; is_loop = FALSE; ret = FALSE; fd = -1; if (!g_str_has_prefix (device->priv->native_path, "/sys/devices/virtual/block/loop")) { ret = TRUE; goto ...
+Info
0
update_info_linux_loop (Device *device) { gboolean ret; gint fd; struct loop_info64 loop_info_buf; gboolean is_loop; gchar *s; gchar *s2; is_loop = FALSE; ret = FALSE; fd = -1; if (!g_str_has_prefix (device->priv->native_path, "/sys/devices/virtual/block/loop")) { ret = TRUE; goto ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,443
update_info_linux_lvm2_lv (Device *device) { const gchar *lv_name; const gchar *vg_name; const gchar *uuid; gchar *lv_uuid; gchar *vg_uuid; gboolean is_lv; is_lv = FALSE; lv_uuid = NULL; vg_uuid = NULL; lv_name = g_udev_device_get_property (device->priv->d, "DM_LV_NAME"); vg_name = g_udev_device...
+Info
0
update_info_linux_lvm2_lv (Device *device) { const gchar *lv_name; const gchar *vg_name; const gchar *uuid; gchar *lv_uuid; gchar *vg_uuid; gboolean is_lv; is_lv = FALSE; lv_uuid = NULL; vg_uuid = NULL; lv_name = g_udev_device_get_property (device->priv->d, "DM_LV_NAME"); vg_name = g_udev_device...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,444
update_info_linux_lvm2_pv (Device *device) { const gchar *pv_uuid; guint64 pv_num_mda; const gchar *vg_name; const gchar *vg_uuid; gboolean is_pv; guint64 vg_size; guint64 vg_unallocated_size; guint64 vg_extent_size; guint64 vg_seqnum; const gchar* const *vg_pvs; const gchar* const *vg_lvs; pv_...
+Info
0
update_info_linux_lvm2_pv (Device *device) { const gchar *pv_uuid; guint64 pv_num_mda; const gchar *vg_name; const gchar *vg_uuid; gboolean is_pv; guint64 vg_size; guint64 vg_unallocated_size; guint64 vg_extent_size; guint64 vg_seqnum; const gchar* const *vg_pvs; const gchar* const *vg_lvs; pv_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,445
update_info_linux_md (Device *device) { gboolean ret; guint n; gchar *s; gchar *p; ret = FALSE; if (sysfs_file_exists (device->priv->native_path, "md")) { gchar *uuid; gint num_raid_devices; gchar *raid_level; gchar *array_state; Device *slave; GPtrArray *md_slaves;...
+Info
0
update_info_linux_md (Device *device) { gboolean ret; guint n; gchar *s; gchar *p; ret = FALSE; if (sysfs_file_exists (device->priv->native_path, "md")) { gchar *uuid; gint num_raid_devices; gchar *raid_level; gchar *array_state; Device *slave; GPtrArray *md_slaves;...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,446
update_info_linux_md_component (Device *device) { if (g_strcmp0 (device->priv->id_type, "linux_raid_member") == 0) { const gchar *md_comp_level; gint md_comp_num_raid_devices; const gchar *md_comp_uuid; const gchar *md_comp_home_host; const gchar *md_comp_name; const gchar *md_...
+Info
0
update_info_linux_md_component (Device *device) { if (g_strcmp0 (device->priv->id_type, "linux_raid_member") == 0) { const gchar *md_comp_level; gint md_comp_num_raid_devices; const gchar *md_comp_uuid; const gchar *md_comp_home_host; const gchar *md_comp_name; const gchar *md_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,447
update_info_luks (Device *device) { if (g_strcmp0 (device->priv->id_type, "crypto_LUKS") == 0 && device->priv->holders_objpath->len == 1) { device_set_device_is_luks (device, TRUE); device_set_luks_holder (device, device->priv->holders_objpath->pdata[0]); } else { device_set_device_is_...
+Info
0
update_info_luks (Device *device) { if (g_strcmp0 (device->priv->id_type, "crypto_LUKS") == 0 && device->priv->holders_objpath->len == 1) { device_set_device_is_luks (device, TRUE); device_set_luks_holder (device, device->priv->holders_objpath->pdata[0]); } else { device_set_device_is_...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,448
update_info_luks_cleartext (Device *device) { uid_t unlocked_by_uid; const gchar *dkd_dm_name; const gchar *dkd_dm_target_types; gboolean ret; ret = FALSE; dkd_dm_name = g_udev_device_get_property (device->priv->d, "DM_NAME"); dkd_dm_target_types = g_udev_device_get_property (device->priv->d, "UDISKS_DM...
+Info
0
update_info_luks_cleartext (Device *device) { uid_t unlocked_by_uid; const gchar *dkd_dm_name; const gchar *dkd_dm_target_types; gboolean ret; ret = FALSE; dkd_dm_name = g_udev_device_get_property (device->priv->d, "DM_NAME"); dkd_dm_target_types = g_udev_device_get_property (device->priv->d, "UDISKS_DM...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,449
update_info_media_detection (Device *device) { gboolean detected; gboolean polling; gboolean inhibitable; gboolean inhibited; detected = FALSE; polling = FALSE; inhibitable = FALSE; inhibited = FALSE; if (device->priv->device_is_removable) { guint64 evt_media_change; GUdevDevice *par...
+Info
0
update_info_media_detection (Device *device) { gboolean detected; gboolean polling; gboolean inhibitable; gboolean inhibited; detected = FALSE; polling = FALSE; inhibitable = FALSE; inhibited = FALSE; if (device->priv->device_is_removable) { guint64 evt_media_change; GUdevDevice *par...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,450
update_info_mount_state (Device *device) { MountMonitor *monitor; GList *mounts; gboolean was_mounted; mounts = NULL; /* defer setting the mount point until FilesystemMount returns and * the mounts file is written */ if (device->priv->job_in_progress && g_strcmp0 (device->priv->job_id, "FilesystemMo...
+Info
0
update_info_mount_state (Device *device) { MountMonitor *monitor; GList *mounts; gboolean was_mounted; mounts = NULL; /* defer setting the mount point until FilesystemMount returns and * the mounts file is written */ if (device->priv->job_in_progress && g_strcmp0 (device->priv->job_id, "FilesystemMo...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,451
update_info_optical_disc (Device *device) { const gchar *cdrom_disc_state; gint cdrom_track_count; gint cdrom_track_count_audio; gint cdrom_session_count; /* device_is_optical_disc and optical_disc_* */ if (g_udev_device_has_property (device->priv->d, "ID_CDROM_MEDIA")) { device_set_device_is_opt...
+Info
0
update_info_optical_disc (Device *device) { const gchar *cdrom_disc_state; gint cdrom_track_count; gint cdrom_track_count_audio; gint cdrom_session_count; /* device_is_optical_disc and optical_disc_* */ if (g_udev_device_has_property (device->priv->d, "ID_CDROM_MEDIA")) { device_set_device_is_opt...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,452
update_info_partition (Device *device) { gboolean is_partition; is_partition = FALSE; /* Check if udisks-part-id identified the device as a partition.. this includes * identifying partitions set up by kpartx for multipath */ if (g_udev_device_has_property (device->priv->d, "UDISKS_PARTITION")) { ...
+Info
0
update_info_partition (Device *device) { gboolean is_partition; is_partition = FALSE; /* Check if udisks-part-id identified the device as a partition.. this includes * identifying partitions set up by kpartx for multipath */ if (g_udev_device_has_property (device->priv->d, "UDISKS_PARTITION")) { ...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,453
update_info_partition_table (Device *device) { gboolean is_partition_table; is_partition_table = FALSE; /* Check if udisks-part-id identified the device as a partition table.. this includes * identifying partition tables set up by kpartx for multipath etc. */ if (g_udev_device_get_property_as_boolean (d...
+Info
0
update_info_partition_table (Device *device) { gboolean is_partition_table; is_partition_table = FALSE; /* Check if udisks-part-id identified the device as a partition table.. this includes * identifying partition tables set up by kpartx for multipath etc. */ if (g_udev_device_get_property_as_boolean (d...
@@ -3336,6 +3336,8 @@ update_info_partition_on_linux_dmmp (Device *device) goto out; targets_type = g_udev_device_get_property_as_strv (device->priv->d, "UDISKS_DM_TARGETS_TYPE"); + /* If we ever need this for other types than "linear", remember to update + udisks-dm-export.c as well. */ if (targets_t...
CWE-200
null
null
9,454
count_entries (PartitionTable *pt) { guint ret; guint num_top_level; guint n; ret = 0; num_top_level = part_table_get_num_entries (pt); for (n = 0; n < num_top_level; n++) { PartitionTable *nested; if (part_table_entry_is_in_use (pt, n)) ret++; nested = part_table_entry_get...
+Info
0
count_entries (PartitionTable *pt) { guint ret; guint num_top_level; guint n; ret = 0; num_top_level = part_table_get_num_entries (pt); for (n = 0; n < num_top_level; n++) { PartitionTable *nested; if (part_table_entry_is_in_use (pt, n)) ret++; nested = part_table_entry_get...
@@ -246,6 +246,8 @@ get_part_table_device_file (struct udev_device *given_device, //g_printerr ("targets_type=`%s'\n", targets_type); //g_printerr ("encoded_targets_params=`%s'\n", encoded_targets_params); + /* If we ever need this for other types than "linear", remember to update + udisks-...
CWE-200
null
null
9,455
get_udev_device_from_device_file (struct udev *udev, const gchar *device_file) { struct udev_device *device; struct stat statbuf; device = NULL; if (stat (device_file, &statbuf) != 0) { g_printerr ("Error statting %s: %m\n", device_file); goto out; } device = udev_device_ne...
+Info
0
get_udev_device_from_device_file (struct udev *udev, const gchar *device_file) { struct udev_device *device; struct stat statbuf; device = NULL; if (stat (device_file, &statbuf) != 0) { g_printerr ("Error statting %s: %m\n", device_file); goto out; } device = udev_device_ne...
@@ -246,6 +246,8 @@ get_part_table_device_file (struct udev_device *given_device, //g_printerr ("targets_type=`%s'\n", targets_type); //g_printerr ("encoded_targets_params=`%s'\n", encoded_targets_params); + /* If we ever need this for other types than "linear", remember to update + udisks-...
CWE-200
null
null
9,456
usage (int argc, char *argv[]) { execlp ("man", "man", "part_id", NULL); g_printerr ("Cannot show man page: %m\n"); exit (1); }
+Info
0
usage (int argc, char *argv[]) { execlp ("man", "man", "part_id", NULL); g_printerr ("Cannot show man page: %m\n"); exit (1); }
@@ -246,6 +246,8 @@ get_part_table_device_file (struct udev_device *given_device, //g_printerr ("targets_type=`%s'\n", targets_type); //g_printerr ("encoded_targets_params=`%s'\n", encoded_targets_params); + /* If we ever need this for other types than "linear", remember to update + udisks-...
CWE-200
null
null
9,457
_udev_util_encode_string(const char *str, char *str_enc, size_t len) { size_t i, j; if (str == NULL || str_enc == NULL) return -1; for (i = 0, j = 0; str[i] != '\0'; i++) { int seqlen; seqlen = utf8_encoded_valid_unichar(&str[i]); ...
+Info
0
_udev_util_encode_string(const char *str, char *str_enc, size_t len) { size_t i, j; if (str == NULL || str_enc == NULL) return -1; for (i = 0, j = 0; str[i] != '\0'; i++) { int seqlen; seqlen = utf8_encoded_valid_unichar(&str[i]); ...
@@ -287,7 +287,10 @@ dm_export (int major, int minor) g_string_append (target_types_str, target_type); g_string_append_printf (start_str, "%" G_GUINT64_FORMAT, start); g_string_append_printf (length_str, "%" G_GUINT64_FORMAT, length); - if (params != NULL && strlen (params) > 0...
CWE-200
null
null
9,458
static int count_args(const char **argv) { int i = 0; if (argv) { while (argv[i] != NULL) i++; } return i; }
Bypass
0
static int count_args(const char **argv) { int i = 0; if (argv) { while (argv[i] != NULL) i++; } return i; }
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,459
void limit_output_verbosity(int level) { short info_limits[COUNT_INFO], debug_limits[COUNT_DEBUG]; int j; if (level > MAX_VERBOSITY) return; memset(info_limits, 0, sizeof info_limits); memset(debug_limits, 0, sizeof debug_limits); /* Compute the level limits in the above arrays. */ for (j = 1; j <= level; j...
Bypass
0
void limit_output_verbosity(int level) { short info_limits[COUNT_INFO], debug_limits[COUNT_DEBUG]; int j; if (level > MAX_VERBOSITY) return; memset(info_limits, 0, sizeof info_limits); memset(debug_limits, 0, sizeof debug_limits); /* Compute the level limits in the above arrays. */ for (j = 1; j <= level; j...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,460
static char *make_output_option(struct output_struct *words, short *levels, uchar where) { char *str = words == info_words ? "--info=" : "--debug="; int j, counts[MAX_OUT_LEVEL+1], pos, skipped = 0, len = 0, max = 0, lev = 0; int word_count = words == info_words ? COUNT_INFO : COUNT_DEBUG; char *buf; memset(count...
Bypass
0
static char *make_output_option(struct output_struct *words, short *levels, uchar where) { char *str = words == info_words ? "--info=" : "--debug="; int j, counts[MAX_OUT_LEVEL+1], pos, skipped = 0, len = 0, max = 0, lev = 0; int word_count = words == info_words ? COUNT_INFO : COUNT_DEBUG; char *buf; memset(count...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,461
void option_error(void) { if (!err_buf[0]) { strlcpy(err_buf, "Error parsing options: option may " "be supported on client but not on server?\n", sizeof err_buf); } rprintf(FERROR, RSYNC_NAME ": %s", err_buf); msleep(20); }
Bypass
0
void option_error(void) { if (!err_buf[0]) { strlcpy(err_buf, "Error parsing options: option may " "be supported on client but not on server?\n", sizeof err_buf); } rprintf(FERROR, RSYNC_NAME ": %s", err_buf); msleep(20); }
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,462
static void output_item_help(struct output_struct *words) { short *levels = words == info_words ? info_levels : debug_levels; const char **verbosity = words == info_words ? info_verbosity : debug_verbosity; char buf[128], *opt, *fmt = "%-10s %s\n"; int j; reset_output_levels(); rprintf(FINFO, "Use OPT or OPT1 f...
Bypass
0
static void output_item_help(struct output_struct *words) { short *levels = words == info_words ? info_levels : debug_levels; const char **verbosity = words == info_words ? info_verbosity : debug_verbosity; char buf[128], *opt, *fmt = "%-10s %s\n"; int j; reset_output_levels(); rprintf(FINFO, "Use OPT or OPT1 f...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,463
static char *parse_hostspec(char *str, char **path_start_ptr, int *port_ptr) { char *s, *host_start = str; int hostlen = 0, userlen = 0; char *ret; for (s = str; ; s++) { if (!*s) { /* It is only OK if we run out of string with rsync:// */ if (!port_ptr) return NULL; if (!hostlen) hostlen = s - ...
Bypass
0
static char *parse_hostspec(char *str, char **path_start_ptr, int *port_ptr) { char *s, *host_start = str; int hostlen = 0, userlen = 0; char *ret; for (s = str; ; s++) { if (!*s) { /* It is only OK if we run out of string with rsync:// */ if (!port_ptr) return NULL; if (!hostlen) hostlen = s - ...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,464
static OFF_T parse_size_arg(char **size_arg, char def_suf) { int reps, mult, make_compatible = 0; const char *arg; OFF_T size = 1; for (arg = *size_arg; isDigit(arg); arg++) {} if (*arg == '.') for (arg++; isDigit(arg); arg++) {} switch (*arg && *arg != '+' && *arg != '-' ? *arg++ : def_suf) { case 'b': case ...
Bypass
0
static OFF_T parse_size_arg(char **size_arg, char def_suf) { int reps, mult, make_compatible = 0; const char *arg; OFF_T size = 1; for (arg = *size_arg; isDigit(arg); arg++) {} if (*arg == '.') for (arg++; isDigit(arg); arg++) {} switch (*arg && *arg != '+' && *arg != '-' ? *arg++ : def_suf) { case 'b': case ...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,465
static void print_rsync_version(enum logcode f) { char *subprotocol = ""; char const *got_socketpair = "no "; char const *have_inplace = "no "; char const *hardlinks = "no "; char const *prealloc = "no "; char const *symtimes = "no "; char const *acls = "no "; char const *xattrs = "no "; char const *links = "n...
Bypass
0
static void print_rsync_version(enum logcode f) { char *subprotocol = ""; char const *got_socketpair = "no "; char const *have_inplace = "no "; char const *hardlinks = "no "; char const *prealloc = "no "; char const *symtimes = "no "; char const *acls = "no "; char const *xattrs = "no "; char const *links = "n...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,466
void reset_output_levels(void) { int j; memset(info_levels, 0, sizeof info_levels); memset(debug_levels, 0, sizeof debug_levels); for (j = 0; j < COUNT_INFO; j++) info_words[j].priority = DEFAULT_PRIORITY; for (j = 0; j < COUNT_DEBUG; j++) debug_words[j].priority = DEFAULT_PRIORITY; }
Bypass
0
void reset_output_levels(void) { int j; memset(info_levels, 0, sizeof info_levels); memset(debug_levels, 0, sizeof debug_levels); for (j = 0; j < COUNT_INFO; j++) info_words[j].priority = DEFAULT_PRIORITY; for (j = 0; j < COUNT_DEBUG; j++) debug_words[j].priority = DEFAULT_PRIORITY; }
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,467
static void set_output_verbosity(int level, uchar priority) { int j; if (level > MAX_VERBOSITY) level = MAX_VERBOSITY; for (j = 1; j <= level; j++) { parse_output_words(info_words, info_levels, info_verbosity[j], priority); parse_output_words(debug_words, debug_levels, debug_verbosity[j], priority); } }
Bypass
0
static void set_output_verbosity(int level, uchar priority) { int j; if (level > MAX_VERBOSITY) level = MAX_VERBOSITY; for (j = 1; j <= level; j++) { parse_output_words(info_words, info_levels, info_verbosity[j], priority); parse_output_words(debug_words, debug_levels, debug_verbosity[j], priority); } }
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,468
static void set_refuse_options(char *bp) { struct poptOption *op; char *cp, shortname[2]; int is_wild, found_match; shortname[1] = '\0'; while (1) { while (*bp == ' ') bp++; if (!*bp) break; if ((cp = strchr(bp, ' ')) != NULL) *cp= '\0'; is_wild = strpbrk(bp, "*?[") != NULL; found_match = 0; fo...
Bypass
0
static void set_refuse_options(char *bp) { struct poptOption *op; char *cp, shortname[2]; int is_wild, found_match; shortname[1] = '\0'; while (1) { while (*bp == ' ') bp++; if (!*bp) break; if ((cp = strchr(bp, ' ')) != NULL) *cp= '\0'; is_wild = strpbrk(bp, "*?[") != NULL; found_match = 0; fo...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,469
void usage(enum logcode F) { print_rsync_version(F); rprintf(F,"\n"); rprintf(F,"rsync is a file transfer program capable of efficient remote update\n"); rprintf(F,"via a fast differencing algorithm.\n"); rprintf(F,"\n"); rprintf(F,"Usage: rsync [OPTION]... SRC [SRC]... DEST\n"); rprintf(F," or rsync...
Bypass
0
void usage(enum logcode F) { print_rsync_version(F); rprintf(F,"\n"); rprintf(F,"rsync is a file transfer program capable of efficient remote update\n"); rprintf(F,"via a fast differencing algorithm.\n"); rprintf(F,"\n"); rprintf(F,"Usage: rsync [OPTION]... SRC [SRC]... DEST\n"); rprintf(F," or rsync...
@@ -1313,6 +1313,7 @@ int parse_arguments(int *argc_p, const char ***argv_p) const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; + int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); @@ -1934,6 +1935,10 @@ int parse_argument...
null
null
null
9,470
static js_Ast *arguments(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ')') return NULL; head = tail = LIST(assignment(J, 0)); while (jsP_accept(J, ',')) { tail = tail->b = LIST(assignment(J, 0)); } return jsP_list(head); }
DoS
0
static js_Ast *arguments(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ')') return NULL; head = tail = LIST(assignment(J, 0)); while (jsP_accept(J, ',')) { tail = tail->b = LIST(assignment(J, 0)); } return jsP_list(head); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,471
static js_Ast *arrayelement(js_State *J) { if (J->lookahead == ',') return EXP0(UNDEF); return assignment(J, 0); }
DoS
0
static js_Ast *arrayelement(js_State *J) { if (J->lookahead == ',') return EXP0(UNDEF); return assignment(J, 0); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,472
static js_Ast *arrayliteral(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ']') return NULL; head = tail = LIST(arrayelement(J)); while (jsP_accept(J, ',')) { if (J->lookahead != ']') tail = tail->b = LIST(arrayelement(J)); } return jsP_list(head); }
DoS
0
static js_Ast *arrayliteral(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ']') return NULL; head = tail = LIST(arrayelement(J)); while (jsP_accept(J, ',')) { if (J->lookahead != ']') tail = tail->b = LIST(arrayelement(J)); } return jsP_list(head); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,473
static js_Ast *funstm(js_State *J) { js_Ast *a, *b, *c; a = identifier(J); jsP_expect(J, '('); b = parameters(J); jsP_expect(J, ')'); c = funbody(J); /* rewrite function statement as "var X = function X() {}" */ return STM1(VAR, LIST(EXP2(VAR, a, EXP3(FUN, a, b, c)))); }
DoS
0
static js_Ast *funstm(js_State *J) { js_Ast *a, *b, *c; a = identifier(J); jsP_expect(J, '('); b = parameters(J); jsP_expect(J, ')'); c = funbody(J); /* rewrite function statement as "var X = function X() {}" */ return STM1(VAR, LIST(EXP2(VAR, a, EXP3(FUN, a, b, c)))); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,474
static js_Ast *identifier(js_State *J) { js_Ast *a; if (J->lookahead == TK_IDENTIFIER) { a = jsP_newstrnode(J, AST_IDENTIFIER, J->text); jsP_next(J); return a; } jsP_error(J, "unexpected token: %s (expected identifier)", jsY_tokenstring(J->lookahead)); }
DoS
0
static js_Ast *identifier(js_State *J) { js_Ast *a; if (J->lookahead == TK_IDENTIFIER) { a = jsP_newstrnode(J, AST_IDENTIFIER, J->text); jsP_next(J); return a; } jsP_error(J, "unexpected token: %s (expected identifier)", jsY_tokenstring(J->lookahead)); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,475
static js_Ast *identifiername(js_State *J) { if (J->lookahead == TK_IDENTIFIER || J->lookahead >= TK_BREAK) { js_Ast *a = jsP_newstrnode(J, AST_IDENTIFIER, J->text); jsP_next(J); return a; } jsP_error(J, "unexpected token: %s (expected identifier or keyword)", jsY_tokenstring(J->lookahead)); }
DoS
0
static js_Ast *identifiername(js_State *J) { if (J->lookahead == TK_IDENTIFIER || J->lookahead >= TK_BREAK) { js_Ast *a = jsP_newstrnode(J, AST_IDENTIFIER, J->text); jsP_next(J); return a; } jsP_error(J, "unexpected token: %s (expected identifier or keyword)", jsY_tokenstring(J->lookahead)); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,476
static js_Ast *identifieropt(js_State *J) { if (J->lookahead == TK_IDENTIFIER) return identifier(J); return NULL; }
DoS
0
static js_Ast *identifieropt(js_State *J) { if (J->lookahead == TK_IDENTIFIER) return identifier(J); return NULL; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,477
static void jsP_error(js_State *J, const char *fmt, ...) { char msgbuf[256]; va_start(ap, fmt); vsnprintf(msgbuf, 256, fmt, ap); va_end(ap); snprintf(buf, 256, "%s:%d: ", J->filename, J->lexline); strcat(buf, msgbuf); js_newsyntaxerror(J, buf); js_throw(J); }
DoS
0
static void jsP_error(js_State *J, const char *fmt, ...) { char msgbuf[256]; va_start(ap, fmt); vsnprintf(msgbuf, 256, fmt, ap); va_end(ap); snprintf(buf, 256, "%s:%d: ", J->filename, J->lexline); strcat(buf, msgbuf); js_newsyntaxerror(J, buf); js_throw(J); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,478
static void jsP_freejumps(js_State *J, js_JumpList *node) { while (node) { js_JumpList *next = node->next; js_free(J, node); node = next; } }
DoS
0
static void jsP_freejumps(js_State *J, js_JumpList *node) { while (node) { js_JumpList *next = node->next; js_free(J, node); node = next; } }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,479
void jsP_freeparse(js_State *J) { js_Ast *node = J->gcast; while (node) { js_Ast *next = node->gcnext; jsP_freejumps(J, node->jumps); js_free(J, node); node = next; } J->gcast = NULL; }
DoS
0
void jsP_freeparse(js_State *J) { js_Ast *node = J->gcast; while (node) { js_Ast *next = node->gcnext; jsP_freejumps(J, node->jumps); js_free(J, node); node = next; } J->gcast = NULL; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,480
static js_Ast *jsP_list(js_Ast *head) { /* set parent pointers in list nodes */ js_Ast *prev = head, *node = head->b; while (node) { node->parent = prev; prev = node; node = node->b; } return head; }
DoS
0
static js_Ast *jsP_list(js_Ast *head) { /* set parent pointers in list nodes */ js_Ast *prev = head, *node = head->b; while (node) { node->parent = prev; prev = node; node = node->b; } return head; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,481
static js_Ast *jsP_newnode(js_State *J, enum js_AstType type, js_Ast *a, js_Ast *b, js_Ast *c, js_Ast *d) { js_Ast *node = js_malloc(J, sizeof *node); node->type = type; node->line = J->astline; node->a = a; node->b = b; node->c = c; node->d = d; node->number = 0; node->string = NULL; node->jumps = NULL; no...
DoS
0
static js_Ast *jsP_newnode(js_State *J, enum js_AstType type, js_Ast *a, js_Ast *b, js_Ast *c, js_Ast *d) { js_Ast *node = js_malloc(J, sizeof *node); node->type = type; node->line = J->astline; node->a = a; node->b = b; node->c = c; node->d = d; node->number = 0; node->string = NULL; node->jumps = NULL; no...
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,482
static js_Ast *jsP_newnumnode(js_State *J, enum js_AstType type, double n) { js_Ast *node = jsP_newnode(J, type, 0, 0, 0, 0); node->number = n; return node; }
DoS
0
static js_Ast *jsP_newnumnode(js_State *J, enum js_AstType type, double n) { js_Ast *node = jsP_newnode(J, type, 0, 0, 0, 0); node->number = n; return node; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,483
static js_Ast *jsP_newstrnode(js_State *J, enum js_AstType type, const char *s) { js_Ast *node = jsP_newnode(J, type, 0, 0, 0, 0); node->string = s; return node; }
DoS
0
static js_Ast *jsP_newstrnode(js_State *J, enum js_AstType type, const char *s) { js_Ast *node = jsP_newnode(J, type, 0, 0, 0, 0); node->string = s; return node; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,484
static void jsP_next(js_State *J) { J->lookahead = jsY_lex(J); J->astline = J->lexline; }
DoS
0
static void jsP_next(js_State *J) { J->lookahead = jsY_lex(J); J->astline = J->lexline; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,485
static void jsP_warning(js_State *J, const char *fmt, ...) { va_list ap; char buf[512]; char msg[256]; va_start(ap, fmt); vsnprintf(msg, sizeof msg, fmt, ap); va_end(ap); snprintf(buf, sizeof buf, "%s:%d: warning: %s", J->filename, J->lexline, msg); js_report(J, buf); }
DoS
0
static void jsP_warning(js_State *J, const char *fmt, ...) { va_list ap; char buf[512]; char msg[256]; va_start(ap, fmt); vsnprintf(msg, sizeof msg, fmt, ap); va_end(ap); snprintf(buf, sizeof buf, "%s:%d: warning: %s", J->filename, J->lexline, msg); js_report(J, buf); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,486
static js_Ast *newexp(js_State *J) { js_Ast *a, *b; if (jsP_accept(J, TK_NEW)) { a = memberexp(J); if (jsP_accept(J, '(')) { b = arguments(J); jsP_expect(J, ')'); return EXP2(NEW, a, b); } return EXP1(NEW, a); } if (jsP_accept(J, TK_FUNCTION)) return funexp(J); return primary(J); }
DoS
0
static js_Ast *newexp(js_State *J) { js_Ast *a, *b; if (jsP_accept(J, TK_NEW)) { a = memberexp(J); if (jsP_accept(J, '(')) { b = arguments(J); jsP_expect(J, ')'); return EXP2(NEW, a, b); } return EXP1(NEW, a); } if (jsP_accept(J, TK_FUNCTION)) return funexp(J); return primary(J); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,487
static js_Ast *objectliteral(js_State *J) { js_Ast *head, *tail; if (J->lookahead == '}')
DoS
0
static js_Ast *objectliteral(js_State *J) { js_Ast *head, *tail; if (J->lookahead == '}')
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,488
static js_Ast *parameters(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ')') return NULL; head = tail = LIST(identifier(J)); while (jsP_accept(J, ',')) { tail = tail->b = LIST(identifier(J)); } return jsP_list(head); }
DoS
0
static js_Ast *parameters(js_State *J) { js_Ast *head, *tail; if (J->lookahead == ')') return NULL; head = tail = LIST(identifier(J)); while (jsP_accept(J, ',')) { tail = tail->b = LIST(identifier(J)); } return jsP_list(head); }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,489
static js_Ast *primary(js_State *J) { js_Ast *a; if (J->lookahead == TK_IDENTIFIER) { a = jsP_newstrnode(J, EXP_IDENTIFIER, J->text); jsP_next(J); return a; } if (J->lookahead == TK_STRING) { a = jsP_newstrnode(J, EXP_STRING, J->text); jsP_next(J); return a; } if (J->lookahead == TK_REGEXP) { a = j...
DoS
0
static js_Ast *primary(js_State *J) { js_Ast *a; if (J->lookahead == TK_IDENTIFIER) { a = jsP_newstrnode(J, EXP_IDENTIFIER, J->text); jsP_next(J); return a; } if (J->lookahead == TK_STRING) { a = jsP_newstrnode(J, EXP_STRING, J->text); jsP_next(J); return a; } if (J->lookahead == TK_REGEXP) { a = j...
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,490
static js_Ast *propassign(js_State *J) { js_Ast *name, *value, *arg, *body; name = propname(J); if (J->lookahead != ':' && name->type == AST_IDENTIFIER) { if (!strcmp(name->string, "get")) { name = propname(J); jsP_expect(J, '('); jsP_expect(J, ')'); body = funbody(J); return EXP3(PROP_GET, name, ...
DoS
0
static js_Ast *propassign(js_State *J) { js_Ast *name, *value, *arg, *body; name = propname(J); if (J->lookahead != ':' && name->type == AST_IDENTIFIER) { if (!strcmp(name->string, "get")) { name = propname(J); jsP_expect(J, '('); jsP_expect(J, ')'); body = funbody(J); return EXP3(PROP_GET, name, ...
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,491
static js_Ast *propname(js_State *J) { js_Ast *name; if (J->lookahead == TK_NUMBER) { name = jsP_newnumnode(J, EXP_NUMBER, J->number); jsP_next(J); } else if (J->lookahead == TK_STRING) { name = jsP_newstrnode(J, EXP_STRING, J->text); jsP_next(J); } else { name = identifiername(J); } return name; }
DoS
0
static js_Ast *propname(js_State *J) { js_Ast *name; if (J->lookahead == TK_NUMBER) { name = jsP_newnumnode(J, EXP_NUMBER, J->number); jsP_next(J); } else if (J->lookahead == TK_STRING) { name = jsP_newstrnode(J, EXP_STRING, J->text); jsP_next(J); } else { name = identifiername(J); } return name; }
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,492
static void semicolon(js_State *J) { if (J->lookahead == ';') { jsP_next(J); return; } if (J->newline || J->lookahead == '}' || J->lookahead == 0)
DoS
0
static void semicolon(js_State *J) { if (J->lookahead == ';') { jsP_next(J); return; } if (J->newline || J->lookahead == '}' || J->lookahead == 0)
@@ -25,6 +25,8 @@ JS_NORETURN static void jsP_error(js_State *J, const char *fmt, ...) JS_PRINTFLI #define INCREC() if (++J->astdepth > JS_ASTLIMIT) jsP_error(J, "too much recursion") #define DECREC() --J->astdepth +#define SAVEREC() int SAVE=J->astdepth +#define POPREC() J->astdepth=SAVE static void jsP_error(j...
CWE-674
null
null
9,493
CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher) { CMS_ContentInfo *cms; CMS_EnvelopedData *env; cms = CMS_ContentInfo_new(); if (cms == NULL) goto merr; env = cms_enveloped_data_init(cms); if (env == NULL) goto merr; if (!cms_EncryptedContent_init(env->enc...
null
0
CMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher) { CMS_ContentInfo *cms; CMS_EnvelopedData *env; cms = CMS_ContentInfo_new(); if (cms == NULL) goto merr; env = cms_enveloped_data_init(cms); if (env == NULL) goto merr; if (!cms_EncryptedContent_init(env->enc...
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,494
int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri) { switch (ri->type) { case CMS_RECIPINFO_TRANS: return cms_RecipientInfo_ktri_decrypt(cms, ri); case CMS_RECIPINFO_KEK: return cms_RecipientInfo_kekri_decrypt(cms, ri); case CMS_RECIPINFO_PASS: return cm...
null
0
int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri) { switch (ri->type) { case CMS_RECIPINFO_TRANS: return cms_RecipientInfo_ktri_decrypt(cms, ri); case CMS_RECIPINFO_KEK: return cms_RecipientInfo_kekri_decrypt(cms, ri); case CMS_RECIPINFO_PASS: return cm...
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,495
int CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri) { switch (ri->type) { case CMS_RECIPINFO_TRANS: return cms_RecipientInfo_ktri_encrypt(cms, ri); case CMS_RECIPINFO_AGREE: return cms_RecipientInfo_kari_encrypt(cms, ri); case CMS_RECIPINFO_KEK: return cm...
null
0
int CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri) { switch (ri->type) { case CMS_RECIPINFO_TRANS: return cms_RecipientInfo_ktri_encrypt(cms, ri); case CMS_RECIPINFO_AGREE: return cms_RecipientInfo_kari_encrypt(cms, ri); case CMS_RECIPINFO_KEK: return cm...
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,496
EVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri) { if (ri->type == CMS_RECIPINFO_TRANS) return ri->d.ktri->pctx; else if (ri->type == CMS_RECIPINFO_AGREE) return ri->d.kari->pctx; return NULL; }
null
0
EVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri) { if (ri->type == CMS_RECIPINFO_TRANS) return ri->d.ktri->pctx; else if (ri->type == CMS_RECIPINFO_AGREE) return ri->d.kari->pctx; return NULL; }
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,497
int CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri, X509_ALGOR **palg, ASN1_OCTET_STRING **pid, ASN1_GENERALIZEDTIME **pdate, ASN1_OBJECT **potherid, ...
null
0
int CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri, X509_ALGOR **palg, ASN1_OCTET_STRING **pid, ASN1_GENERALIZEDTIME **pdate, ASN1_OBJECT **potherid, ...
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,498
int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri, const unsigned char *id, size_t idlen) { ASN1_OCTET_STRING tmp_os; CMS_KEKRecipientInfo *kekri; if (ri->type != CMS_RECIPINFO_KEK) { CMSerr(CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP, CMS_R_NOT_KEK); retur...
null
0
int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri, const unsigned char *id, size_t idlen) { ASN1_OCTET_STRING tmp_os; CMS_KEKRecipientInfo *kekri; if (ri->type != CMS_RECIPINFO_KEK) { CMSerr(CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP, CMS_R_NOT_KEK); retur...
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null
9,499
int CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert) { if (ri->type != CMS_RECIPINFO_TRANS) { CMSerr(CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP, CMS_R_NOT_KEY_TRANSPORT); return -2; } return cms_SignerIdentifier_cert_cmp(ri->d.ktri->rid, cert); }
null
0
int CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert) { if (ri->type != CMS_RECIPINFO_TRANS) { CMSerr(CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP, CMS_R_NOT_KEY_TRANSPORT); return -2; } return cms_SignerIdentifier_cert_cmp(ri->d.ktri->rid, cert); }
@@ -363,6 +363,7 @@ static int cms_RecipientInfo_ktri_decrypt(CMS_ContentInfo *cms, unsigned char *ek = NULL; size_t eklen; int ret = 0; + size_t fixlen = 0; CMS_EncryptedContentInfo *ec; ec = cms->d.envelopedData->encryptedContentInfo; @@ -371,6 +372,19 @@ static int cms_RecipientInfo_ktr...
CWE-311
null
null